Skip to contents

Create a task to install a package and dependencies

Usage

install_task_spec(type = getOption("pkgType"), INSTALL_opts = NULL, ...)

Arguments

type

character, indicating the type of package to download and install. Will be "source" except on Windows and some macOS builds: see the section on ‘Binary packages’ for those.

INSTALL_opts

an optional character vector of additional option(s) to be passed to R CMD INSTALL for a source package install. E.g., c("--html", "--no-multiarch", "--no-test-load").

Can also be a named list of character vectors to be used as additional options, with names the respective package names.

...

Additional parameters passed to task_spec()