Learn R Programming

GRANBase (version 2.6.20)

clear_temp_files: Clear packages and temporary files from repo build process

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

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.

Value

The GRANRepository object, ready to be rebuilt.

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.