clear: Clear packages and temporary files from repo build process

Description Usage Arguments Details Value Note Author(s)

Description

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.

Usage

1
2
3
clear_temp_files(repo, checkout = FALSE, logs = FALSE)

clear_repo(repo, all = TRUE, checkout = FALSE, archivedir = NA)

Arguments

repo

GRANRepository - The repository to clean

checkout

logical - Should the checkouts of packages also be cleared. Generally this is not necessary (default: FALSE)

logs

logical - should the logs (check, install, and single package) be cleared (default: FALSE)

all

logical - Should temporary artifacts from the build process also be cleared (via automatically calling clear_temp_files). Defaults to TRUE

archivedir

character - Optional. A directory where build packages deployed to the repository will be archived. Package versions already in the archive will not be overwritten.

Details

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.

Value

The GRANRepository object, ready to be rebuilt.

Note

It is not advised to clear the logs in a direct call to clear_temp_files. use clear_repo instead.

Author(s)

Gabriel Becker


GRANBase documentation built on Feb. 6, 2020, 5:09 p.m.