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:
## Make sure your current packages are up to date update.packages() ## devtools is required library(devtools) install_github("trinker/pacman")
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: [email protected]
Quick Reference Table
| pacman Function | Base Equivalent | Description |
library | Load and Install Packages |
install.packages | Install Packages from CRAN |
p_load_gh | NONE | Load and Install GitHub Packages |
p_install_gh | NONE | Install Packages from GitHub |
packageVersion | Install Minimum Version of Packages |
p_temp | NONE | Install a Package Temporarily |
detach | Unload Packages from the Search Path |
update.packages | Update Out-of-Date Packages |
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.