{"id":13401041,"url":"https://github.com/r-lib/pak","last_synced_at":"2025-05-14T05:08:12.557Z","repository":{"id":37390521,"uuid":"109310239","full_name":"r-lib/pak","owner":"r-lib","description":"A fresh approach to package installation","archived":false,"fork":false,"pushed_at":"2025-05-12T08:34:22.000Z","size":32770,"stargazers_count":731,"open_issues_count":221,"forks_count":65,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-12T08:49:44.412Z","etag":null,"topics":["r"],"latest_commit_sha":null,"homepage":"https://pak.r-lib.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-02T19:33:56.000Z","updated_at":"2025-05-12T08:28:23.000Z","dependencies_parsed_at":"2025-04-13T21:23:18.611Z","dependency_job_id":"389cd47f-b48b-45a5-9428-08a8113df0e7","html_url":"https://github.com/r-lib/pak","commit_stats":{"total_commits":877,"total_committers":27,"mean_commits":32.48148148148148,"dds":0.1356898517673888,"last_synced_commit":"b60f439959e8dc2a162ab4ab3e08bb16bf0ed151"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fpak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fpak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fpak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fpak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/pak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253708794,"owners_count":21951057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r"],"created_at":"2024-07-30T19:00:58.111Z","updated_at":"2025-05-14T05:08:12.547Z","avatar_url":"https://github.com/r-lib.png","language":"C","funding_links":[],"categories":["R","C"],"sub_categories":[],"readme":"---\noutput:\n  github_document:\n    toc: true\n    toc_depth: 2\n    includes:\n      before_body: inst/header.md\nalways_allow_html: yes\neditor_options:\n  markdown:\n    wrap: sentence\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r}\n#| include: false\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures\",\n  out.width = \"100%\",\n  cache = TRUE,\n  asciicast_theme = if (Sys.getenv(\"IN_PKGDOWN\") == \"true\") \"pkgdown\" else \"readme\"\n)\nasciicast::init_knitr_engine(\n  startup = quote({\n    library(cli)\n    library(pak)\n    pak::lib_status()\n    set.seed(1)\n  }),\n  echo = TRUE,\n  echo_input = FALSE,\n  interactive = FALSE\n)\n```\n\n```{asciicast}\n#| label: asciicast-setup\n#| include: false\n#| cache: false\ndir.create(.lib \u003c- tempfile())\n.libPaths(c(.lib, .libPaths()))\n```\n\n```{asciicast}\n#| label: tmp-cache\n#| include: false\n#| cache: false\nSys.setenv(R_USER_CACHE_DIR = tempfile())\noptions(cli_num_colors = 256)\n```\n\n## :rocket: Short tour\n\n#### Install or update packages from CRAN or Bioconductor\n\n```{asciicast}\n#| label: cran\npak::pkg_install(\"tibble\")\n```\n\n#### Install packages from GitHub\n\n```{asciicast}\n#| label: gh\npak::pkg_install(\"tidyverse/tibble\")\n```\n\n#### Look up dependencies\n\n```{asciicast}\n#| label: deps\npak::pkg_deps_tree(\"tibble\")\n```\n\n#### Explain dependencies\n\n```{asciicast}\n#| label: explain\npak::pkg_deps_explain(\"tibble\", \"rlang\")\n```\n\n#### Install a local package and its dependencies\n\n```{asciicast}\n#| label: local-pre\n#| include: false\ndl \u003c- pak::pkg_download(\"cli\", platforms = \"source\", tempdir())\nuntar(dl$fulltarget[1])\n```\n\n```{asciicast}\n#| label: local\npak::local_install(\"cli\")\n```\n\n## :link: Quick links (start here if in doubt!)\n\n### How do I ... ?\n\nStart at [_Get Started with pak_](https://pak.r-lib.org/reference/get-started.html) to solve specific issues.\n\n### FAQ\n\nCheck out the [list of frequently asked questions](https://pak.r-lib.org/reference/faq.html).\n\n### Reference\n\n[The complete reference of pak functions](https://pak.r-lib.org/dev/reference/) is the most complete source of information about pak.\n\n### I have a(nother) question\n\nDon't hesitate to ask at the [RStudio Community forum](https://forum.posit.co/).\nUse the `pak` tag.\n\n### I would like to report a bug\n\nHead to the [pak issue tracker](https://github.com/r-lib/pak/issues).\n\n## :sparkles: Features\n\n:zap: Fast - parallel downloads and installation, caching, etc.\n\n:safety_vest: Safe - dependency solver, system dependency solver, etc.\n\n:convenience_store: Convenient - packages from multiple sources, time travel, etc.\n\nSee the [complete list of awesome features](https://pak.r-lib.org/reference/features.html).\n\n## [:arrow_down:](https://github.com/r-lib/rig#%EF%B8%8F--installation) Installation\n\n### Pre-built binaries\n\nInstall a binary build of pak from our repository on GitHub:\n\n``` r\ninstall.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform$pkgType, R.Version()$os, R.Version()$arch))\n```\n\nThis is supported for the following systems:\n\n| OS                 | CPU     | R version         |\n|--------------------|---------|-------------------|\n| Linux              | x86_64  | R 3.5.0 - R-devel |\n| Linux              | aarch64 | R 3.5.0 - R-devel |\n| macOS High Sierra+ | x86_64  | R 3.5.0 - R-devel |\n| macOS Big Sur+     | aarch64 | R 4.1.0 - R-devel |\n| Windows            | x86_64  | R 3.5.0 - R-devel |\n\nFor macOS we only support the official CRAN R build.\nOther builds, e.g.\nHomebrew R, are not supported.\n\n### Install from CRAN\n\nInstall the released version of the package from CRAN as usual:\n\n``` r\ninstall.packages(\"pak\")\n```\n\nThis potentially needs a C compiler on platforms CRAN does not have binaries packages for.\n\n### Other platforms and nightly builds\n\nSee the [installation page](https://pak.r-lib.org/reference/install.html)!\n\n## **:blue_book:** License\n\nGPL-3 © RStudio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fpak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fpak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fpak/lists"}