The pacman package is an R package management tool that combines the functionality of base library related functions into intuitively named functions. This package is ideally added to .Rprofile to increase workflow by reducing time recalling obscurely named functions, reducing code and integrating functionality of base functions to simultaneously perform multiple actions.
Function names in the pacman package follow the format of
p_xxx where ‘xxx’ is the task the function performs. For instance the
p_load function allows the user to load one or more packages as a more generic substitute for the
require functions and if the package isn’t available locally it will install it for you.
The user can install from CRAN via:
You can also download the dev version via zip ball or tar ball, decompress and run
R CMD INSTALL on it, or use the devtools package to install the development version:
Note: Windows users need Rtools and devtools to install this way.
You are welcome to: * submit suggestions and bug-reports at: https://github.com/trinker/pacman/issues * send a pull request on: https://github.com/trinker/pacman/ * compose a friendly e-mail to: firstname.lastname@example.org
Quick Reference Table
|pacman Function||Base Equivalent||Description|
||Load and Install Packages|
||Install Packages from CRAN|
||NONE||Load and Install GitHub Packages|
||NONE||Install Packages from GitHub|
||Install Minimum Version of Packages|
||NONE||Install a Package Temporarily|
||Unload Packages from the Search Path|
||Update Out-of-Date Packages|