powered by
Install a package and it's dependencies.
pkg_install(pkg, lib = .libPaths()[[1L]], upgrade = FALSE, ask = interactive())
Package names or remote package specifications to install.
Package library to install the packages to.
Whether to upgrade already installed packages to the latest available version.
Whether to ask for confirmation.
Data frame, with information about the installed package(s).
# NOT RUN { pkg_install("dplyr") pkg_install("dplyr", upgrade = TRUE) ## Package from GitHub pkg_install("r-lib/pkgconfig") # }
Run the code above in your browser using DataLab