{"id":13857893,"url":"https://github.com/yihui/homebrew-cran-extra","last_synced_at":"2025-07-13T22:31:23.299Z","repository":{"id":37695659,"uuid":"136403006","full_name":"yihui/homebrew-cran-extra","owner":"yihui","description":"A \"CRAN extras\" repository of some binary R packages for the Homebrew (cask) version of base R on macOS","archived":true,"fork":false,"pushed_at":"2022-10-06T03:58:34.000Z","size":257,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-22T15:41:28.852Z","etag":null,"topics":["homebrew","macos","r","r-packages"],"latest_commit_sha":null,"homepage":"https://macos.rbind.io","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yihui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-07T01:03:36.000Z","updated_at":"2023-12-07T07:53:27.000Z","dependencies_parsed_at":"2022-08-09T09:15:38.799Z","dependency_job_id":null,"html_url":"https://github.com/yihui/homebrew-cran-extra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yihui/homebrew-cran-extra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhomebrew-cran-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhomebrew-cran-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhomebrew-cran-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhomebrew-cran-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yihui","download_url":"https://codeload.github.com/yihui/homebrew-cran-extra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhomebrew-cran-extra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218209,"owners_count":23729496,"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":["homebrew","macos","r","r-packages"],"created_at":"2024-08-05T03:01:49.856Z","updated_at":"2025-07-13T22:31:22.878Z","avatar_url":"https://github.com/yihui.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# Extra Binary R packages for the Homebrew R (Cask)\n\n[![build-extra](https://github.com/yihui/homebrew-cran-extra/actions/workflows/build-extra.yaml/badge.svg)](https://github.com/yihui/homebrew-cran-extra/actions)\n\n**NOTE**: This project is no longer maintained. If anyone wants to resurrect it, please feel free to let me know.\n\n---\n\nThe repository https://macos.rbind.io ([Github repo](https://github.com/yihui/homebrew-cran-extra)) provides some binary R packages for the Homebrew (cask) version of base R that are currently missing on CRAN, in a similar spirit as the \"CRAN extras\" repository for Windows: https://www.stats.ox.ac.uk/pub/RWin/. If you are using the Homebrew version of R on the latest version of macOS, you may set the `repos` option in R first:\n\n```r\n# you may do this in your ~/.Rprofile so you don't have to do it every time\noptions(repos = c(\n  CRANextra = 'https://macos.rbind.io',\n  CRAN = 'https://cran.rstudio.com'\n))\n```\n\nNote that the `CRAN` repository does not have to be `https://cran.rstudio.com`. It can be any other CRAN mirror.\n\nThen you will be able to install some binary packages with `install.packages()`, e.g.,\n\n```r\ninstall.packages(c('cairoDevice', 'RGtk2'))\n```\n\nTo see which packages are available, use the function `available.packages()` in R:\n\n```r\nrownames(available.packages(\n  repos = 'https://macos.rbind.io', type = 'binary'\n))\n```\n\n## Why creating this repository?\n\nCRAN maintainers have provided binaries for most R packages (big thanks!), but a few have still been missing so far. This repository serves as a complement to the official CRAN respository, and provides a subset of the binary R packages that are unavailable on CRAN.\n\nTo use this repository, you are expected to install the cask `r` from Homebrew (instead of the formula `brew install r`):\n\n```sh\nbrew install --cask r\n```\n\nThe R installer you manually downloaded and installed from CRAN should also work, but it is not tested here.\n\n## Scope of the repository\n\nThe repository https://macos.rbind.io does not provide binary packages of these packages:\n\n1. Packages of which the binaries already exist on CRAN (the package names are obtained as the differences between `available.packages(type = 'source')` and `available.packages(type = 'binary')`).\n\n1. Packages that depend on BioConductor packages.\n\n1. Packages of which the system dependencies are not available in Homebrew (e.g., `rggobi`) or too difficult to install (e.g., `kmcudaR`).\n\nThe repository is automatically updated daily from [Github Action](https://github.com/yihui/homebrew-cran-extra/actions), which means if a new version of a source R package appears on CRAN, its binary package should be available in this repository in less than 24 hours (if it satisfies the above conditions).\n\n## Instructions on system dependencies\n\nSome packages only require system dependencies at the build time, e.g., the R package **xml2** requires the brew package `libxml2` when building it from source, but `libxml2` is no longer needed once the binary package is built (after `install.packages('xml2')`, you can remove `libxml2`). However, some packages still need the system dependencies at the run time, such as **RGtk2** (you cannot `brew uninstall gtk+`). To install the system dependencies after installing a binary R package from `macos.rbind.io`, you may use `xfun:::brew_dep()` to query the dependencies and install them, e.g.,\n\n```r\ninstall.packages('xfun')\nsystem2('brew', c('install', xfun:::brew_dep('RGtk2')))\n```\n\n## Disclaimer\n\nMy knowledge of building binary R packages is fairly limited, so please consider this repository as experimental before real experts join me. I'd welcome anyone to help with this project. In the same spirit of Homebrew, I really wish this will become a project maintained by the community instead of me alone.\n\n## License\n\nThe source code in the [Github repo](https://github.com/yihui/homebrew-cran-extra) is licensed under MIT. For the R packages, please consult their DESCRIPTION files for their specific licenses. The copyright of these packages belongs to their original authors. You may obtain the source code of these R packages from CRAN if you wish to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Fhomebrew-cran-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyihui%2Fhomebrew-cran-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Fhomebrew-cran-extra/lists"}