Skip to content

About pak

Installing pak
All about installing pak.
Great pak features
A list of the most important pak features
Package sources
Install packages from CRAN, Bioconductor, GitHub, URLs, etc.
The dependency solver
Find the ideal set of packages and versions to install
Package dependency types
Various types of R package dependencies
System requirements sysreqs
System requirements
pak configuration pak-config
Environment variables and options that modify the default behavior

Packages

Installation

pkg_install()
Install packages
pak()
Install specified required packages
pkg_status()
Display installed locations of a package
pkg_remove()
Remove installed packages

Dependencies

pkg_deps()
Look up the dependencies of a package
pkg_deps_explain()
Explain how a package depends on other packages
pkg_deps_tree()
Draw the dependency tree of a package

Download

pkg_download()
Download a package and its dependencies

Metadata

pkg_history()
Query the history of a CRAN package
pkg_name_check()
Check if an R package name is available
pkg_search()
Search CRAN packages

Local Package Trees

local_package_trees
About local package trees
local_deps() local_deps_tree() local_dev_deps() local_dev_deps_tree()
Dependencies of a package tree
local_deps_explain() local_dev_deps_explain()
Explain dependencies of a package tree
local_install()
Install a package tree
local_install_deps()
Install the dependencies of a package tree
local_install_dev_deps()
Install all (development) dependencies of a package tree

Libraries

lib_status() pkg_list()
Status of packages in a library

System requirements

pkg_sysreqs()
Calculate system requirements of one of more packages
sysreqs_check_installed() sysreqs_fix_installed()
Check if installed packages have all their system requirements
sysreqs_db_list()
List contents of the system requirements DB, for a platform
sysreqs_db_match()
Match system requirement descriptions to the database
sysreqs_db_update()
Update the cached copy of the system requirements database
sysreqs_is_supported()
Check if a platform has system requirements support
sysreqs_list_system_packages()
List installed system packages
sysreqs_platforms()
List platforms with system requirements support

Repositories

ppm_has_binaries()
Does PPM build binary packages for the current platform?
ppm_platforms()
List all platforms supported by Posit Package Manager (PPM)
ppm_r_versions()
List all R versions supported by Posit Package Manager (PPM)
ppm_repo_url()
Returns the current Posit Package Manager (PPM) repository URL
ppm_snapshots()
List all available Posit Package Manager (PPM) snapshots
repo_add() repo_resolve()
Add a new CRAN-like repository
repo_get()
Query the currently configured CRAN-like repositories
repo_status() repo_ping()
Show the status of CRAN-like repositories

Auto-install missing packages

handle_package_not_found()
Install missing packages on the fly

Lock files

lockfile_create()
Create a lock file
lockfile_install()
Install packages based on a lock file

System information

pak housekeeping

cache_summary() cache_list() cache_delete() cache_clean()
Package cache utilities
meta_summary() meta_list() meta_update() meta_clean()
Metadata cache utilities
pak_install_extra()
Install all optional dependencies of pak
pak_cleanup()
Clean up pak caches
pak_sitrep()
pak SITuation REPort
pak_update()
Update pak itself