Skip to contents

Downloads a full copy (snapshot) of an R package repository.

Usage

repo_snapshot(repo, destdir = "snapshot", bin_versions = r_version())

r_version()

Arguments

repo

url of the cran-like repository to snapshot

destdir

where to save the snapshots (path).

bin_versions

vector with versions of R to download the win/mac binary packages. The default is to download binaries only for your local version. Set to NULL to not download any binaries.

Value

None, used for its side-effects.

Examples

if (FALSE) { # interactive()
repo_snapshot(
  "https://jeroen.r-universe.dev",
   bin_versions = c("4.1", "4.2", "4.3")
)
}