This function will download a package with all its dependencies to a zipped archive, to them be installed within TSD using tsd_package_install.

tsd_package_prepare(
  package,
  folder = package,
  repos = getOption("repos"),
  verbose = TRUE,
  zip = TRUE,
  ...
)

Arguments

package

name of package. character.

folder

character. folder to place all necessary files in

repos

character vector. Addresses of CRAN mirror(s)

verbose

logical. If function should be talkative.

zip

logical, if folder should be zipped at the end

...

additional arguments to functions install.packages and available.packages

Value

returns nothing, but creates a folder and zip archive

Examples

if (FALSE) { tsd_package_prepare("devtools") tsd_package_prepare("dplyr", folder = "dplyr_pkg") tsd_package_prepare("dplyr", repos = "https://cran.uib.no/", verbose = FALSE) }