download_dependencies: Download the dependencies of a package

Description Usage Arguments Value See Also Examples

View source: R/dependencies.R

Description

Download the dependencies of a package.

Usage

1
2
3
4
5
6
7
download_dependencies(
  dependencies,
  directory,
  repository = getOption("repos"),
  installed = TRUE,
  replace = FALSE
)

Arguments

dependencies

A dataframe. The dependencies of a package.

directory

A string (default = "network"). The directory where the downloaded packages are to be stored. Creates the directory if it does not exist.

repository

A string (default = getOption("repos")). The base URL of the repository to use.

installed

A boolean or a character vector (default = TRUE). Filter out the packages that are already installed.

replace

A boolean (default = FALSE). Control if the existing packages in the directory should be replaced.

Value

A two-column matrix of names and destination file names for the packages successfully downloaded.

See Also

get_dependencies, plot_dependencies, download_dependencies, install_dependencies

Examples

1
2
3
4
5
## Not run: 
dependencies <- get_dependencies(package = "shiny")
download_dependencies(dependencies = dependencies, directory = "packages")

## End(Not run)

thoera/dependencies documentation built on May 18, 2020, 9:57 p.m.