pacman (version 0.5.1)

p_install: Installs & Loads Packages

Description

Installs a package provided the package is a CRAN package.

Usage

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

Run this code
# NOT RUN {
p_install(pacman)
# }

Run the code above in your browser using DataCamp Workspace