p_inst is a wrapper around install.packages which tries
hard to select the most appropriate lib and stops in case of conflict.
... allows a non-standard evaluation of unquoted packages separated by commas.
Use install.packages if any additional argument is needed.
p_inst(..., char = NULL, lib = NULL, repos = getOption("repos"),
contriburl = NULL, dependencies = NA, type = getOption("pkgType"))any format recognized by cnsc, excluding list.
A vector of packages.
(name to) a character vector or a list. Use this argument if
... fails or if you call the function from another function.
If used, argument ... is ignored.
character. The directory where to install the packages, usually
one of the directories listed by .libPaths. If NULL,
select automatically the most relevant directory.
character. The address of your local CRAN.
character. The address of your private repository.
logical. FALSE skips the installation of dependencies.
NA installs c("Depends", "Imports", "LinkingTo")
dependencies.
character. Either "source", "both", "binary"
(or its variants "mac.binary", "mac.binary.el-capitan",
"win.binary").