README.md

Rock Solid Package Installation for Legacy R Versions

Status

AppVeyor build
status Codecov

lines of R code: 299, lines of test code: 0

Version

0.2.3 ( 2020-08-19 20:27:40 )

Description

Make sure packages are available at runtime without any setup. Package installation, reproducibility and exchanging code can be frustrating especially if code is used on older R versions. Often it is hard to puzzle out which package versions are able to work together after some years have passed and packages evolved further and further. The ‘wayback’ package aims to make this process as painless and robust as possible by using ‘MRAN’s ’CRAN’ snapshots to build local package libraries from way back.

License

GPL-3 Peter Meissner [aut, cre], virtual7 [cph]

Citation

citation("wayback")
Meissner P (2020). wayback: Rock Solid Package Installation for Legacy R Versions. R package version 0.2.3.

BibTeX for citing

BibTeX(citation("wayback"))
@Manual{,
  title = {wayback: Rock Solid Package Installation for Legacy R Versions},
  author = {Peter Meissner},
  year = {2020},
  note = {R package version 0.2.3},
}

Installation

Stable version from CRAN:

install.packages("wayback")

Package Usage

library(wayback)

The main function of the package is wb_require(). Once {wayback} is installed this function allows to have required packages loaded from a library specified. In addition wb_require() will install packages that are not present but required.

The real core strength and purpose of the package is to install packages and dependencies from a specific point in time. This is provided by the date parameter allowing to go back in time - especially to a point in time where known to have consistent states of packages and dependencies for a given version of R.

suppressPackageStartupMessages(
  wb_require(
    pkg          = "glue", 
    date         = Sys.Date(),
    library_path = "./r_package_library"
  )
)
## loaded glue
info <- packageDescription("glue", lib.loc = "./r_package_library")

info$Packaged
## [1] "2020-05-13 14:58:42 UTC; jhester"

Package Use Cases and Scope

Package Maxims and Trade Offs

Other Packages and Frameworks



Try the wayback package in your browser

Any scripts or data that you put into this service are public.

wayback documentation built on Oct. 23, 2020, 5:47 p.m.