Installation
Installing Packages
This page describes what a package is, what happens during installation, and the tools you can use to install packages.
The best resource for understanding package installation is Wickham’s “What is a package?”.
Most R users are familiar with the R function install.packages. Here, we recommend two alternatives:
The
pakpackage is used to install packages interactively.pakis designed to help humans install packages quickly and safely.The
remotespackage is used to install packages programmatically.remotesis designed with to help machines install package. Theremotespackage is intentionally lightweight and does not, itself, have any dependencies.1
Footnotes
remotespowersdevtools::install_and is a suitable, lightweight alternative.↩︎