These are convenience functions which clears the intermediate files generated during the build process. This is important when, e.g., building a repository for the first time with a new version of R.
clear_temp_files(repo, checkout = FALSE, logs = FALSE)clear_repo(repo, all = TRUE, checkout = FALSE, archivedir = NA)
GRANRepository - The repository to clean
logical - Should the checkouts of packages also be cleared. Generally this is not necessary (default: FALSE)
logical - should the logs (check, install, and single package) be cleared (default: FALSE)
logical - Should temporary artifacts from the build process also be cleared (via automatically calling clear_temp_files). Defaults to TRUE
character - Optional. A directory where build packages deployed to the repository will be archived. Package versions already in the archive will not be overwritten.
The GRANRepository object, ready to be rebuilt.
clear_repo
removes packages deployed into the destination repository,
updates the PACKAGES and PACKAGES.gz files, and resets the build results within the
GRANRepository object. clear_temp_files
clears
intermediate files from the library location used during building, the temporary
repository, the package staging area, and the store of install- and check-results.