- Notifications
You must be signed in to change notification settings - Fork75
A fresh approach to package installation
r-lib/pak
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Fresh Approach to R Package Installation
pak installs R packages from CRAN, Bioconductor, GitHub, URLs, gitrepositories, local files and directories. It is an alternative toinstall.packages() anddevtools::install_github(). pak is fast, safe andconvenient.
pak::pkg_install("tibble")
pak::pkg_install("tidyverse/tibble")
pak::pkg_deps_tree("tibble")
pak::pkg_deps_explain("tibble","rlang")
pak::local_install("cli")
Start atGet Started withpak to solvespecific issues.
Check out thelist of frequently askedquestions.
The complete reference of pakfunctions is the most completesource of information about pak.
Don’t hesitate to ask at theRStudio Communityforum. Use thepak tag.
Head to thepak issue tracker.
⚡ Fast - parallel downloads and installation, caching, etc.
🦺 Safe - dependency solver, system dependency solver, etc.
🏪 Convenient - packages from multiple sources, timetravel, etc.
See thecomplete list of awesomefeatures.
⬇️ Installation
Install a binary build of pak from our repository on GitHub:
install.packages("pak",repos= sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s",.Platform$pkgType, R.Version()$os, R.Version()$arch))
This is supported for the following systems:
| OS | CPU | R version |
|---|---|---|
| Linux | x86_64 | R 3.5.0 - R-devel |
| Linux | aarch64 | R 3.5.0 - R-devel |
| macOS High Sierra+ | x86_64 | R 3.5.0 - R-devel |
| macOS Big Sur+ | aarch64 | R 4.1.0 - R-devel |
| Windows | x86_64 | R 3.5.0 - R-devel |
For macOS we only support the official CRAN R build. Other builds, e.g.Homebrew R, are not supported.
Install the released version of the package from CRAN as usual:
install.packages("pak")This potentially needs a C compiler on platforms CRAN does not havebinaries packages for.
See theinstallationpage!
GPL-3 © RStudio
About
A fresh approach to package installation
Topics
Resources
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.