This function enables you to delete a snapshot archive folder from disk, thus releasing storage space. If you supply a single snapshotDate, then only this archive will be removed. You also have the option to remove a series of snapshots, including all snapshots before a given date, or all snapshots that have not been accessed since a given date.
checkpointRemove(snapshotDate, checkpointLocation = "~/",
allSinceSnapshot = FALSE, allUntilSnapshot = FALSE,
notUsedSince = FALSE)Date of snapshot to use in YYYY-MM-DD format, e.g. "2014-09-17". Specify a date on or after "2014-09-17". MRAN takes one snapshot per day. To list all valid snapshot dates on MRAN use getValidSnapshots()
File path where the checkpoint library is stored. Default is "~/", i.e. the user's home directory. A use case for changing this is to create a checkpoint library on a portable drive (e.g. USB drive).
If TRUE, removes all snapshot archives since the snapshotDate
If TRUE, removes all snapshot archives before the snapshotDate
If TRUE, removes all snapshot archives that have not been accessed since the snapshotDate. See getAccessDate()
Other checkpoint functions: checkpointArchives,
checkpoint, getAccessDate,
getValidSnapshots, mranUrl,
setSnapshot, unCheckpoint
checkpointArchives()
checkpointRemove("2016-10-01")
Run the code above in your browser using DataLab