Install package dependencies if needed.
install_deps(pkgdir = ".", dependencies = NA, threads = getOption("Ncpus",
1), repos = getOption("repos"), type = getOption("pkgType"), ...,
upgrade = TRUE, quiet = FALSE)
path to a package directory.
Which dependencies do you want to check? Can be a character vector (selecting from "Depends", "Imports", "LinkingTo", "Suggests", or "Enhances"), or a logical vector.
TRUE
is shorthand for "Depends", "Imports", "LinkingTo" and
"Suggests". NA
is shorthand for "Depends", "Imports" and "LinkingTo"
and is the default. FALSE
is shorthand for no dependencies (i.e.
just check this package, not its dependencies).
Number of threads to start, passed to
install.packages
as Ncpus
.
A character vector giving repositories to use.
Type of package to update
. If "both", will switch
automatically to "binary" to avoid interactive prompts during package
installation.
additional arguments passed to install.packages
.
If TRUE
, also upgrade any of out date dependencies.
If TRUE
, suppress output.
# NOT RUN {
install_deps(".")
# }
Run the code above in your browser using DataCamp Workspace