Skip to content

Commit

Permalink
Move saving dependencies to function, do not use record (#7)
Browse files Browse the repository at this point in the history
* Move saving dependencies to function, do not use record

* Automatic renv profile update.

* Automatic renv profile update.

* Automatic renv profile update.

---------

Co-authored-by: galachad <[email protected]>
  • Loading branch information
galachad and galachad authored Oct 3, 2023
1 parent cd34e7c commit 7377187
Show file tree
Hide file tree
Showing 6 changed files with 3,009 additions and 23 deletions.
6 changes: 5 additions & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@

c(
project_dir,
dependencies
dependencies,
"devtools",
"staged.dependencies",
"styler"
) |>
unique() |>
renv:::renv_package_dependencies() |>
names()
}


options(renv.snapshot.filter = .get_dependencies)

if (Sys.getenv("GITHUB_ACTIONS") != "") {
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/r-renv-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ jobs:
c(
project_dir,
dependencies
dependencies,
"devtools",
"staged.dependencies",
"styler"
) |>
unique() |>
renv:::renv_package_dependencies() |>
Expand Down Expand Up @@ -132,10 +135,6 @@ jobs:
renv::settings$snapshot.type("custom")
renv::snapshot(force = TRUE, prompt = FALSE)
renv::record("[email protected]")
renv::record("devtools")
renv::record("[email protected]")
renv::record("openpharma/staged.dependencies")
if (identical(renv_profile, "4.3")) {
file.copy(renv::paths$lockfile(), "renv.lock", overwrite = TRUE)
Expand Down
Loading

0 comments on commit 7377187

Please sign in to comment.