knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures", out.width = "100%", cache = TRUE, asciicast_theme = if (Sys.getenv("IN_PKGDOWN") == "true") "pkgdown" else "readme" ) asciicast::init_knitr_engine( startup = quote({ library(cli) library(pak) pak::lib_status() set.seed(1) }), echo = TRUE, echo_input = FALSE, interactive = FALSE )
```{asciicast asciicast-setup, include = FALSE, cache = FALSE} dir.create(.lib <- tempfile()) .libPaths(c(.lib, .libPaths()))
```{asciicast tmp-cache, include = FALSE, cache = FALSE} Sys.setenv(R_USER_CACHE_DIR = tempfile()) options(cli_num_colors = 256)
```{asciicast cran} pak::pkg_install("tibble")
#### Install packages from GitHub ```{asciicast gh} pak::pkg_install("tidyverse/tibble")
```{asciicast deps} pak::pkg_deps_tree("tibble")
#### Explain dependencies ```{asciicast explain} pak::pkg_deps_explain("tibble", "rlang")
```{asciicast local-pre, include = FALSE} dl <- pak::pkg_download("cli", platforms = "source", tempdir()) untar(dl$fulltarget[1])
```{asciicast local} pak::local_install("cli")
Start at Get Started with pak to solve specific issues.
Check out the list of frequently asked questions.
The complete reference of pak functions is the most complete source of information about pak.
Don't hesitate to ask at the RStudio Community forum.
Use the pak
tag.
Head to the pak issue tracker.
:zap: Fast - parallel downloads and installation, caching, etc.
:safety_vest: Safe - dependency solver, system dependency solver, etc.
:convenience_store: Convenient - packages from multiple sources, time travel, etc.
See the complete list of awesome features.
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 have binaries packages for.
See the installation page!
GPL-3 © RStudio
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.