You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* dev:
Skip test if offline
Rebuild documentation
Make lines shorter
Reorganize code; Delete code no longer used
Use markdown for documentation #235
Use markdown for documentation #235
Document newly exposed functions #209, #235
Use markdown in roxygen docs #235
Use markdown in roxygen docs #235
Copy file name to clipboardExpand all lines: R/checkpoint-package.R
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,17 @@
2
2
#'
3
3
#' 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.
4
4
#'
5
-
#' 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 to 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.
5
+
#' 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.
6
6
#'
7
-
#' 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.
7
+
#' 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.
8
8
#'
9
-
#' checkpoint exposes only a single function:
9
+
#' checkpoint exposes functions for:
10
10
#'
11
-
#' \describe{
12
-
#' \item{\code{\link{checkpoint}}}{Configures R session to use packages as they existed on CRAN at time of snapshot.}
13
-
#' }
11
+
#' * [checkpoint()]: Configures R session to use packages as they existed on CRAN at time of snapshot.
12
+
#' * [checkpointArchives()]: List checkpoint archives on disk.
13
+
#' * [checkpointRemove()]: Remove checkpoint archive from disk.
14
+
#' * [setSnapshot()]: Set default CRAN repository to MRAN snapshot date.
15
+
#' * [getValidSnapshots()]: Read list of available snapshot dates from MRAN.
#' Read list of available snapshot dates from MRAN.
22
+
#'
23
+
#' Returns vector of available dates from MRAN or local MRAN repository.
24
+
#'
25
+
#' @param mranRootUrl MRAN root. This can be a URL, e.g. `https://mran.microsoft.com/snapshot/` or the path to a local MRAN repository, e.g.`file:///local/path`
26
+
#'
27
+
#' @export
28
+
#' @return Character vector with dates of valid snapshots
0 commit comments