install_package_plan: Install packages from a package installation plan

Description Usage Arguments Details Value See Also

View source: R/install.R

Description

Download and install packages from a package installation plan.

Usage

1
2
install_package_plan(plan = "resolution.json", lib = .libPaths()[[1]],
  num_workers = "auto", quiet = FALSE)

Arguments

plan

Package installation plan object, as created by the pkgdepends package. It can also be a character scalar referring to to an exported installation plan JSON file, in which case the plan is loaded from that file.

lib

Package library to install the packages to. If it does not exist, it will be created.

num_workers

The number of processes to use to install the packages. If it is the string scalar "auto", then it is determined automatically, from the "Ncpus" option, if set, or the number of cores the machine has.

quiet

If TRUE, suppress status messages.

Details

It uses download_package_plan() to download the packages, if the plan does not have a "file" column.

It downloads and installs all packages in parallel.

Value

The installation plan.

See Also

download_package_plan() if you only want to download the files.


gaborcsardi/installlite documentation built on May 22, 2019, 5:33 p.m.