Reproducible Scripts via Version-Specific Package Loading
c(
person(given = "Uri",
family = "Simonsohn",
role = c("aut", "cph"),
email = "urisohn@gmail.com",
comment = c(ORCID = "0000-0002-8601-7211")),
person(given = "Hugo",
family = "Gruson",
role = c("cre", "aut"),
email = "hugo.gruson+R@normalesup.org",
comment = c(ORCID = "0000-0002-4094-1476"))
)
Make R scripts that rely on packages reproducible by ensuring that
every time a given script is run, the same version of the used packages are
loaded (instead of whichever version the user running the script happens to
have installed). This is achieved by using the new command
groundhog.library() instead of the base command library(), and including a
date in the call. The date is used to call on the same version of the
package every time (the most recent version available on CRAN at that date).
covr, testthat (>= 2.1.0), knitr, rmarkdown

c(
person(given = "Uri",
family = "Simonsohn",
role = c("aut", "cre"),
email = "urisohn@gmail.com",
comment = c(ORCID = "0000-0002-8601-7211")),
person(given = "Hugo",
family = "Gruson",
role = c("ctb", "aut"),
email = "hugo.gruson+R@normalesup.org",
comment = c(ORCID = "0000-0002-4094-1476"))
)
Make R scripts that rely on packages reproducible, by ensuring that
every time a given script is run, the same version of the used packages are
loaded (instead of whichever version the user running the script happens to
have installed). This is achieved by using the new command
groundhog.library() instead of the base command library(), and including a
date in the call. The date is used to call on the same version of the
package every time (the most recent version available on CRAN at that date).

The Simplest Solution to Version-Control for CRAN Packages

Version-Control for CRAN, GitHub, and GitLab Packages
Make R scripts reproducible, by ensuring that
every time a given script is run, the same version of the used packages are
loaded (instead of whichever version the user running the script happens to
have installed). This is achieved by using the command
groundhog.library() instead of the base command library(), and including a
date in the call. The date is used to call on the same version of the
package every time (the most recent version available at that date).
Load packages  from CRAN, GitHub, or Gitlab.