Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trinker/pacman
A package management tools for R
https://github.com/trinker/pacman
cran github package-management packages r r-package
Last synced: 6 days ago
JSON representation
A package management tools for R
- Host: GitHub
- URL: https://github.com/trinker/pacman
- Owner: trinker
- Created: 2012-05-29T18:09:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T13:43:42.000Z (10 months ago)
- Last Synced: 2024-11-30T19:09:03.531Z (13 days ago)
- Topics: cran, github, package-management, packages, r, r-package
- Language: HTML
- Homepage:
- Size: 1.8 MB
- Stars: 313
- Watchers: 12
- Forks: 37
- Open Issues: 65
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - trinker/pacman - A package management tools for R (HTML)
README
# pacman
[![Build Status](https://travis-ci.org/trinker/pacman.png?branch=master)](https://travis-ci.org/trinker/pacman) [![DOI](https://zenodo.org/badge/5398/trinker/pacman.svg)](http://dx.doi.org/10.5281/zenodo.15406)
[![](http://cranlogs.r-pkg.org/badges/pacman)](https://cran.r-project.org/package=pacman)The [pacman](http://trinker.github.io/pacman_dev/) 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.
![](tools/pacman_logo/r_pacman.png)
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 `library` or `require` functions and if the package isn't available locally it will install it for you.
## Installation
The user can install from [CRAN](https://cran.r-project.org/package=pacman) via:
```r
install.packages("pacman")
```You can also download the dev version via [zip ball](https://github.com/trinker/pacman/zipball/master) or [tar ball](https://github.com/trinker/pacman/tarball/master), decompress and run `R CMD INSTALL` on it, or use the **devtools** package to install the development version:
```r
## Make sure your current packages are up to date
update.packages()
## devtools is required
library(devtools)
install_github("trinker/pacman")
```Note: Windows users need [Rtools](http://www.murdoch-sutherland.com/Rtools/) and [devtools](http://CRAN.R-project.org/package=devtools) to install this way.
## Help
- [Web Page](http://trinker.github.com/pacman/)
- Vignettes:
- [HTML Vignette: Introduction to pacman](http://trinker.github.io/pacman/vignettes/Introduction_to_pacman.html)
- [pacman Functions: Quick Reference](http://trinker.github.io/pacman_dev/vignettes/pacman_functions_quick_reference.html)## Contact
You are welcome to:
* submit suggestions and bug-reports at:
* send a pull request on:
* compose a friendly e-mail to:## Installing, Loading, Unloading, Updating, & Deleting Packages with pacman
**Quick Reference Table**
| pacman Function | Base Equivalent | Description |
|----------------------|----------------------|----------------|
| `p_load` | `install.packages` + `library` | Load and Install Packages |
| `p_install` | `install.packages` | Install Packages from CRAN |
| `p_load_gh` | NONE | Load and Install GitHub Packages |
| `p_install_gh` | NONE | Install Packages from GitHub |
| `p_install_version` | `install.packages` &
`packageVersion` | Install Minimum Version of Packages |
| `p_temp` | NONE | Install a Package Temporarily |
| `p_unload` | `detach` | Unload Packages from the Search Path |
| `p_update` | `update.packages` | Update Out-of-Date Packages |