install.deps: Install Dependencies

View source: R/install.deps.R

install.depsR Documentation

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

## Not run: 
# 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()

## End(Not run)


TAF documentation built on Nov. 5, 2025, 7:21 p.m.