From c8d88b1766f846ddb550f58627ecb3e32cc97f42 Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Thu, 2 May 2024 13:54:47 +0000 Subject: [PATCH] docs(r-packages): add note about the sysreqs option --- src/r-packages/NOTES.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/r-packages/NOTES.md b/src/r-packages/NOTES.md index b28bd52..a6b97d2 100644 --- a/src/r-packages/NOTES.md +++ b/src/r-packages/NOTES.md @@ -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