pkg_install

0th

Percentile

Install a package

Install a package and its dependencies, into a single package library.

Usage
pkg_install(pkg, lib = .libPaths()[[1L]], upgrade = FALSE,
  ask = interactive())
Arguments
pkg

Package names or remote package specifications to install.

lib

Package library to install the packages to. Note that all dependent packages will the be installed here, even if they are already installed in another library.

upgrade

Whether to upgrade already installed packages to the latest available version. If this is FALSE, then only packages that need updates to satisfy version requirements, will be updated. If it is TRUE, all specified or dependent packages will be updated to the latest available version.

ask

Whether to ask for confirmation.

Value

Data frame, with information about the installed package(s).

See Also

Other package functions: pak_package_sources, pkg_remove, pkg_status

Aliases
  • pkg_install
Examples
# NOT RUN {
pkg_install("dplyr")
pkg_install("dplyr", upgrade = TRUE)

## Package from GitHub
pkg_install("r-lib/pkgconfig")
# }
Documentation reproduced from package pak, version 0.1.2, License: GPL-3

Community examples

Looks like there are no examples yet.