Learn R Programming

TAF (version 4.3.0)

install.deps: Install Dependencies

Description

Search R scripts for packages that are required and install those that are not already installed. The default install location is the same as install.packages.

Usage

install.deps(path = ".", ...)

Arguments

path

a directory or file containing R code.

...

passed to install.packages.

Details

This function also looks in the TAF boot directory for packages that are required by the TAF boot process, i.e., called from a boot script.

In addition it runs taf.boot on SOFTWARE.bib to install any special packages that may not be available on CRAN.

See Also

install.packages is the underlying function to install packages.

deps searches R scripts for packages that are required.

TAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
# Download a TAF analysis
download(file.path("https://github.com/ices-taf/2019_san.sa.6",
                   "archive/refs/heads/master.zip"))
unzip("master.zip")
setwd("2019_san.sa.6-master")

# List dependencies
deps()
deps(taf.boot.path())

# Install dependencies that are not already installed
install.deps()
}

Run the code above in your browser using DataLab