Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info on binaries #82

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading