download_pkgs.Rd
Download the latest version of pkgs
by as_of_date
to disk.
Could take a while to run if input pkgs
contains multiple packages.
download_pkgs( pkgs = PKG_GLOBAL_ENV$PA_PKGS, as_of_date = PKG_GLOBAL_ENV$PKG_FREEZE_DATE, path_to_dir = tempdir(check = TRUE), verbose = TRUE )
pkgs | character vector of the names of packages for which to query available versions |
---|---|
as_of_date | (character, convertible to date)
date of interest to subset versions of |
path_to_dir | (character, to be used as path to file system) path to file system where the downloaded packages will reside |
verbose | (logical) whether to print verbose logs to console |
a list
containing
path_to_dir
: same as the input argument
pkg_dirs
: names of package directories within path_to_dir
download_pkgs( pkgs = c("data.table", "knitr"), as_of_date = "2019-01-01", path_to_dir = tempdir(check = TRUE) )#>#>#>#>#>#>#>#>#> $path_to_dir #> [1] "/tmp/RtmpjwVHgv" #> #> $pkg_dirs #> [1] "data.table-1.11.8" "knitr-1.21" #>