-
Notifications
You must be signed in to change notification settings - Fork 10
[Roadmap ‐ v0.6]
See "dev/dev_history_parse.Rmd"
⚠️ May be mandatory
As a dev, I'd like to know if there are files in my R, tests, vignettes directories, that are not linked to any flat files, and were not defined by the developers to be kept ("keep" field in "config_fusen.yml") => check_not_registered_files()
As a dev, I'd like a function to delete all files listed by previous function.
=> See clean_obsolete_files()
issue #24
- verify if flat files still exist
- verify if all listed files still exist
- lists all files that will be cleaned and ask
- recommend to commit before clean
- cleans all files listed after yes
- Verify that all files listed in config_file still exist
=> There is no need to verify if functions are still there or not, because everything happens at the scale of the filename
As a dev, I would like inflate()
to delete previous R, test or vignettes files if they are not produced anymore by the flat file. For instance, in case I change the name of a main function or I delete one of them, or I decide I do not want to output a vignette.
-
updates the part dedicated to the corresponding flat file with all files created.
-
List filenames (from this specific flat file) that are removed during this update, verify if they still exists
-
Inflate proposes to delete the obsolete files detected
=> deprecate_flat_file()
- Move it to "dev/flat_history/flat_..."
- Change the path of this file in the config file
- Change status in the config file to "deprecated"
- Clean the "do not edit by hand" => "Originally created from dev/dev_history/flat_..."
- Add "do not edit by hand" and "do not inflate" in the flat file, and comment the complete "inflate" chunk.
- Change the path of this file in the config file
- Change names in the flat file itself
- Change names in the inflated files
- As dev, I can have a visual representation of the structure of my package: https://github.com/ThinkR-open/fusen/issues/189
- dontrun{} integration is not fully clean: https://github.com/ThinkR-open/fusen/issues/183