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
p_install(package, character.only = FALSE,
  path = getOption("download_path"), ...)

p_get(package, character.only = FALSE, path = getOption("download_path"),
  ...)

Arguments

package

Name of package(s).

character.only

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

path

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

...

Additional parameters to pass to install.packages.

See Also

install.packages

Examples

1
## Not run: p_install(pacman)

pacman documentation built on May 29, 2017, 10:50 a.m.