tsd_package_prepare: Prepare R package for TSD install

View source: R/tsd_package.R

tsd_package_prepareR Documentation

Prepare R package for TSD install

Description

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

Usage

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

## Not run: 
tsd_package_prepare("devtools")

tsd_package_prepare("dplyr", folder = "dplyr_pkg")

tsd_package_prepare("dplyr", repos = "https://cran.uib.no/", verbose = FALSE)


## End(Not run)

LCBC-UiO/tsdrtools documentation built on June 22, 2022, 8:21 p.m.