p_inst: A simple wrapper around install.packages()

p_instR Documentation

A simple wrapper around install.packages()

Description

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.

Usage

p_inst(..., char = NULL, lib = NULL, repos = getOption("repos"),
  contriburl = NULL, dependencies = NA, type = getOption("pkgType"))

Arguments

...

any format recognized by cnsc, excluding list. A vector of packages.

char

(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.

lib

character. The directory where to install the packages, usually one of the directories listed by .libPaths. If NULL, select automatically the most relevant directory.

repos

character. The address of your local CRAN.

contriburl

character. The address of your private repository.

dependencies

logical. FALSE skips the installation of dependencies. NA installs c("Depends", "Imports", "LinkingTo") dependencies.

type

character. Either "source", "both", "binary" (or its variants "mac.binary", "mac.binary.el-capitan", "win.binary").


RWsearch documentation built on May 29, 2024, 6:42 a.m.