Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use renv 1.0.7 #1703

Merged
merged 6 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ if (file.exists("renv.lock") && file.exists("README.md") && !file.exists("renv/o
message("moved legacy renv.lock to renv/old_renv.lock")
}

# do not check if library and renv.lock are in sync, because normally renv.lock does not exist
options(renv.config.synchronized.check = FALSE)

source("renv/activate.R")

renvVersion <- "0.16.0"
# when increasing renvVersion first commit new version's activate script and
# put that commit's hash into the download.file call below
renvVersion <- "1.0.7"
dklein-pik marked this conversation as resolved.
Show resolved Hide resolved
if (packageVersion("renv") != renvVersion) {
renvLockExisted <- file.exists(renv::paths$lockfile())
renv::upgrade(version = renvVersion, reload = TRUE, prompt = FALSE)
renv::install(paste0("renv@", renvVersion))
message("Downloading 'renv/activate.R' of renv version 1.0.7")
download.file("https://raw.githubusercontent.com/remindmodel/remind/b83bb1811ff08d8ee5ba8e834af5dd0080d10e66/renv/activate.R", "renv/activate.R")
if (!renvLockExisted) {
unlink(renv::paths$lockfile())
}
Expand Down
4 changes: 2 additions & 2 deletions renv/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sandbox/
archive/
library/
local/
cellar/
lock/
python/
sandbox/
staging/
archive/
old_renv.lock
Loading
Loading