p_install: Installs & Loads Packages

Description Usage Arguments See Also Examples

View source: R/p_install.R

Description

Installs a package provided the package is a CRAN package.

Usage

1
2
3
4
5
6
7
p_install(package, character.only = FALSE, force = TRUE,
  path = getOption("download_path"), try.bioconductor = TRUE,
  update.bioconductor = FALSE, ...)

p_get(package, character.only = FALSE, force = TRUE,
  path = getOption("download_path"), try.bioconductor = TRUE,
  update.bioconductor = FALSE, ...)

Arguments

package

Name of package(s).

character.only

logical. If TRUE ... is treated a character string.

force

logical. Should package be installed if it already exists on local system?

path

The path to the directory that contains the package. It is convenient to set download_path in .Rprofile options to the downloads directory.

try.bioconductor

If TRUE, tries to install the package from Bioconductor if it is not found on CRAN using BiocManager.

update.bioconductor

If TRUE, tries to update dependencies used by try.bioconductor.

...

Additional parameters to pass to install.packages.

See Also

install.packages

Examples

1
## Not run: p_install(pacman)

pacman documentation built on Oct. 22, 2018, 9:03 a.m.