Skip to content

Commit

Permalink
docs(r-packages): add note about the sysreqs option (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored May 2, 2024
1 parent 1525de4 commit a7e71da
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/r-packages/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,21 @@ or this should be installed after installing Features that installs R
Note that source installation of the R packages may require the installation of
additional build tools and system packages.

For Debian and Ubuntu,
you can use [the `ghcr.io/rocker-org/devcontainer-features/apt-packages` Feature](https://github.com/rocker-org/devcontainer-features/blob/main/src/apt-packages)
If many cases, we can use the `installSystemRequirements` option to install the system requirements
automatically by `pak::pak()`.

```json
"features": {
"ghcr.io/rocker-org/devcontainer-features/r-apt:latest": {},
"ghcr.io/rocker-org/devcontainer-features/r-packages:1": {
"packages": "cli",
"installSystemRequirements": true
}
}
```

Or, for Debian and Ubuntu,
we can use [the `ghcr.io/rocker-org/devcontainer-features/apt-packages` Feature](https://github.com/rocker-org/devcontainer-features/blob/main/src/apt-packages)
to install apt packages before installing this Feature.

```json
Expand Down

0 comments on commit a7e71da

Please sign in to comment.