The goal of checkpoint is to solve the problem of package reproducibility in R. Specifically, checkpoint allows you to install packages as they existed on CRAN on a specific snapshot date as if you had a CRAN time machine.
To achieve reproducibility, the checkpoint()
function installs the packages required or called by your project and scripts to a local library exactly as they existed at the specified point in time. Only those packages are available tot your project, thereby avoiding any package updates that came later and may have altered your results. In this way, anyone using the checkpoint checkpoint()
function can ensure the reproducibility of your scripts or projects at any time.
To create the snapshot archives, once a day (at midnight UTC) we refresh the Austria CRAN mirror, on the checkpoint server (https://mran.microsoft.com/). Immediately after completion of the `rsync`` mirror process, we take a snapshot, thus creating the archive. Snapshot archives exist starting from 2014-09-17.
checkpoint
exposes functions for:
Creating and using snapshots:
checkpoint()
: Configures R session to use packages as they existed on CRAN at time of snapshot.
setSnapshot()
: Set default CRAN repository to MRAN snapshot date.
getValidSnapshots()
: Read list of available snapshot dates from MRAN.
Managing local archives:
checkpointArchives()
: List checkpoint archives on disk.
checkpointRemove()
: Remove checkpoint archive from disk.
getAccessDate()
: Returns the date the snapshot was last accessed.
Other:
unCheckpoint()
: (Experimental) Reset the .libPath
to the user library