Skip to content

Commit

Permalink
Merge pull request #188 from pharmaverse/automated-renv-lock-propagat…
Browse files Browse the repository at this point in the history
…ion@devel

Propagate renv.lock from pharmaverse/admiralci
  • Loading branch information
manciniedoardo authored Sep 8, 2023
2 parents e56587a + 0562d6c commit a1dba9d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
))
)
)
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", getwd()))]
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", "pharmaversesdtm", getwd()))]
}

options(renv.snapshot.filter = .get_dependencies)
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/4.1/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"containerEnv": {
"ROOT": "true",
"PASSWORD": "rstudio",
"DISABLE_AUTH": "true"
"DISABLE_AUTH": "true",
"RENV_AUTOLOADER_ENABLED": "false"
},
"features": {
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": {
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/4.2/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"containerEnv": {
"ROOT": "true",
"PASSWORD": "rstudio",
"DISABLE_AUTH": "true"
"DISABLE_AUTH": "true",
"RENV_AUTOLOADER_ENABLED": "false"
},
"features": {
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": {
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"containerEnv": {
"ROOT": "true",
"PASSWORD": "rstudio",
"DISABLE_AUTH": "true"
"DISABLE_AUTH": "true",
"RENV_AUTOLOADER_ENABLED": "false"
},
"features": {
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": {
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

R -q -e 'renv::activate(profile = paste(R.version$major, substr(R.version$minor, 1, 1), sep = ".")); renv::restore(); staged.dependencies::install_deps(staged.dependencies::dependency_table(project = ".", verbose = 1), verbose = 1);'
R -q -e 'renv::restore(lockfile = file.path("renv", "profiles", paste(R.version$major, substr(R.version$minor, 1, 1), sep = "."), "renv.lock")); staged.dependencies::install_deps(staged.dependencies::dependency_table(project = ".", verbose = 1), verbose = 1);'

jq --arg folder "$(pwd)/" '. + { "initial_working_directory": $folder }' .devcontainer/rstudio-prefs.json > ~/.config/rstudio/rstudio-prefs.json
3 changes: 2 additions & 1 deletion renv/profiles/4.1/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down
3 changes: 2 additions & 1 deletion renv/profiles/4.2/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down
3 changes: 2 additions & 1 deletion renv/profiles/4.3/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down

0 comments on commit a1dba9d

Please sign in to comment.