From 5c44688e60352186b3cf5b424ab421b92dadd2cb Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Sun, 12 May 2024 05:39:32 +0000 Subject: [PATCH] test: fix test --- src/r-dependent-packages/lifecycle_script.sh | 4 ++-- test/r-dependent-packages/{ => r-ver-default}/DESCRIPTION | 2 +- test/r-dependent-packages/scenarios.json | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) rename test/r-dependent-packages/{ => r-ver-default}/DESCRIPTION (85%) diff --git a/src/r-dependent-packages/lifecycle_script.sh b/src/r-dependent-packages/lifecycle_script.sh index ed9589b..4365634 100755 --- a/src/r-dependent-packages/lifecycle_script.sh +++ b/src/r-dependent-packages/lifecycle_script.sh @@ -4,7 +4,7 @@ set -e echo "Install dependent R packages..." -# R -q -e \ -# 'pak::repo_add(@REPOS@); pak::local_install_deps("@ROOT@", dependencies = trimws(unlist(strsplit("@DEPS@", ","))))' +R -q -e \ + 'pak::repo_add(@REPOS@); pak::local_install_deps("@ROOT@", dependencies = trimws(unlist(strsplit("@DEPS@", ","))))' echo "Done!" diff --git a/test/r-dependent-packages/DESCRIPTION b/test/r-dependent-packages/r-ver-default/DESCRIPTION similarity index 85% rename from test/r-dependent-packages/DESCRIPTION rename to test/r-dependent-packages/r-ver-default/DESCRIPTION index 284431c..105e8fa 100644 --- a/test/r-dependent-packages/DESCRIPTION +++ b/test/r-dependent-packages/r-ver-default/DESCRIPTION @@ -1,5 +1,5 @@ Package: foo Version: 0.0.0.9000 Suggests: - cli + cli, rlang diff --git a/test/r-dependent-packages/scenarios.json b/test/r-dependent-packages/scenarios.json index 8d8a389..362d145 100644 --- a/test/r-dependent-packages/scenarios.json +++ b/test/r-dependent-packages/scenarios.json @@ -2,7 +2,9 @@ "r-ver-default": { "image": "rocker/r-ver:4", "features": { - "r-dependent-packages": {} + "r-dependent-packages": { + "manifestRoot": ".devcontainer" + } } } }