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
pak configuration
Environment variables and options that modify the defualt 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

Repositories

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

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