Skip to content

Commit

Permalink
add info on binaries (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Dec 19, 2024
1 parent 6d2926c commit 228f242
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browse/api.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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://<username>.r-universe.dev/api/packages/<package>`

Expand Down
8 changes: 8 additions & 0 deletions install/binaries.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 228f242

Please sign in to comment.