pacman Functions: Quick Reference

Tyler W. Rinker & Dason Kurkiewicz

Installing, Loading, Unloading, Updating, & Deleting

pacman Function Base Equivalent Description
p_load install.packages + library Loads and Install Packages
p_install install.packages Install Packages from CRAN
p_load_gh NONE Loads 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 Unloads Packages from the Search Path
p_update update.packages Update Out-of-Date Packages

Session Information

pacman Function Base Equivalent Description
p_loaded .packages & sessionInfo List Attached Packages
p_isloaded NONE Logical Test of Attached Package

Local Package Information

pacman Function Base Equivalent Description
p_author packageDescription Author of Package
p_citation citation Citation for Package
p_data data List Package Data Sets
p_depends &
p_depends_reverse
package_dependencies &
dependsOnPkgs
Package Dependencies/Reverse Dependencies Locally/on CRAN
p_exists available.packages &
list.files + .libPaths
Logical Check if Package
Exists Locally/on CRAN
p_functions loadNamespace + getNamespaceExports Functions from Package
p_help help HTML/PDF Manuals Viewing
p_information packageDescription Information for Package
p_interactive NONE Search Packages Interactively
p_news news Package NEWS
p_version packageVersion & R.Version Version of Package
p_vignette browseVignettes Package Vignettes Viewing

Internet Based Package Information

pacman Function Base Equivalent Description
p_cran available.package List CRAN Package
p_iscran %in% + available.package Logical Test of CRAN
p_search_any NONE Search for Package by Author

Library Information

pacman Function Base Equivalent Description
p_base NONE List Base Package
p_library Sys.getenv + .packages List Packages in User's Library
p_path .libPaths Path to User's Package Library
p_search_library NONE Search Library Packages Via Partial Matching
p_unlock NONE Deletes 00LOCK Directory

pacman Tools

pacman Function Base Equivalent Description
p_detectOS Sys.info Detect Operating System
p_extract NONE Extract Packages from String
p_opendir system/shell Open a Directory