From d00eccd68a164c6815ccc97e266c960fcb48794b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Thu, 19 Dec 2024 14:53:47 +0100 Subject: [PATCH] add info on binaries --- browse/api.qmd | 4 +++- install/binaries.qmd | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/browse/api.qmd b/browse/api.qmd index cd594a1..59b1c9b 100644 --- a/browse/api.qmd +++ b/browse/api.qmd @@ -87,8 +87,10 @@ packages <- universe::universe_all_packages("jeroen") # The result is a list of packages str(packages[[1]], max.level = 1) ``` + + -### Information on a single package in an universe +### Information on a single package in an universe {#api-pkg} URL: `https://.r-universe.dev/api/packages/` diff --git a/install/binaries.qmd b/install/binaries.qmd index abd4533..f97f1ee 100644 --- a/install/binaries.qmd +++ b/install/binaries.qmd @@ -18,6 +18,14 @@ options(repos = c( See how [this is done automatically in the base image](https://github.com/r-universe-org/base-image/blob/f20ec9fc6f51ef8a89aad489206a43790bd9bf77/Rprofile#L10-L16) when an environment variable `MY_UNIVERSE` is set. + +## Binaries for packages with compiled code + +In information on packages provided by the [API](#api-pkg), the `arch` field to the `binaries` field only if there is compiled code in the package. +Packages without compiled code are identical on all architectures. + +On MacOS we only build a separate intel and arm64 version for packages with compiled code, otherwise the same binary is used for both. + ## How to use WebAssembly Binaries We have experimental support for webassembly binaries! You should use the official [r-wasm repository](https://repo.r-wasm.org) for dependencies. For example to install the dev version of dplyr: