This is a major refactoring/rewrite of checkpoint, aimed at solving many long-standing issues.
install.packages
and the like. This brings the following benefits:
create_checkpoint
and use_checkpoint
, reflecting the two main objectives of the package. The checkpoint
function calls out to these, based on whether the checkpoint directory exists.
checkpoint
in your home directory should result in checkpointing very many packages only once.uncheckpoint
(which is the reverse of use_checkpoint
), delete_checkpoint
and delete_all_checkpoints
to manage checkpointing. They replace checkpointRemove
, checkpointArchives
and unCheckpoint
.getValidSnapshots
renamed to list_mran_snapshots
to clarify that it lists the snapshots on the MRAN server. Similarly, setSnapshot
renamed to use_mran_snapshot
for consistency with other function names.scanForPackages
renamed to scan_project_files
to match grammatical pattern of other function names; now automatically includes rmarkdown (not knitr) in the list of dependencies if Rmarkdown-based files are found.checkpoint.yml
manifest file, to specify packages to include or exclude.
use.lock
argument to checkpoint
. When this is FALSE
, packages are installed without the use of locks (via the --no-lock
argument to R CMD INSTALL
). The default is TRUE
, which is needed to pass checks on R-devel; set this to FALSE
to replicate the previous behaviour of checkpoint
.DESCRIPTION
file.unCheckpoint
now automatically restores library paths to their pre-checkpoint state. This fixes the bug where library paths specified by means other than the R_LIBS_USER
environment variable, eg via code in .Rprofile
, were not restored. The new
argument is no longer used, and a warning is printed if it is supplied.For package updates in previous releases of checkpoint, please see the releases page at https://github.com/RevolutionAnalytics/checkpoint/releases