You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Binary packages for Linux [](https://github.com/r-devel/linux-binary-packages/actions/workflows/test.yml)
2
+
3
+
R-4.6 has finally standardized the format for serving binary packages on platforms beyond Windows and MacOS, notably Linux. Here we run some demos and tests to further improve this.
4
+
5
+
R news item: https://developer.r-project.org/blosxom.cgi/R-devel/NEWS/2026/02/03
6
+
7
+
## How it works
8
+
9
+
This is not enabled by default. Users (or distro-maintainers) opt-in via environment variable `R_PLATFORM_PKGTYPE` which specifies the path where R will look for binaries on package repositories. This variable is usually set in any of the `Renviron` files that gets loaded when R starts.
10
+
11
+
The format of this variable must be `{os}.binary.{flavor}` for example if we use:
Where `linux` and `noble-x86_64` are taken from `R_PLATFORM_PKGTYPE` and `{r-version}` is the usual `major.minor` R version (without the patch part) e.g. `4.6`.
25
+
26
+
R will show a warning and fall back on building packages from source as usual for packages or repositories where the requested binaries are not available.
27
+
28
+
29
+
## Testing with R-universe
30
+
31
+
Currently R-universe already hosts such binaries for Ubuntu "noble" 24.04 for both arm64 and x86_64:
We can use the attached [Dockerfile](Dockerfile) to test that this works as intended by installing the tidyverse and its dependencies. The output logs show that installation is quick and no packages get built from source.
37
+
38
+
```sh
39
+
docker build . --no-cache --progress=plain
40
+
```
41
+
42
+
Output from nightly runs of this Dockerfile on GitHub actions is here: https://github.com/r-devel/linux-binary-packages/actions/workflows/test.yml
0 commit comments