Skip to content

Commit

Permalink
When using renv 1.0.7 make sure to use the corresponding (newer) renv…
Browse files Browse the repository at this point in the history
…/activate.R
  • Loading branch information
dklein-pik committed Jun 13, 2024
1 parent b83bb18 commit 88c3439
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ if (file.exists("renv.lock") && file.exists("README.md") && !file.exists("renv/o

source("renv/activate.R")

renvVersion <- "0.16.0"
renvVersion <- "1.0.7"
if (packageVersion("renv") != renvVersion) {
renvLockExisted <- file.exists(renv::paths$lockfile())
renv::upgrade(version = renvVersion, reload = TRUE, prompt = FALSE)
renv::install(paste0("renv@", renvVersion))
download.file("https://raw.githubusercontent.com/remindmodel/remind/b83bb1811ff08d8ee5ba8e834af5dd0080d10e66/renv/activate.R", "renv/activate.R")
if (!renvLockExisted) {
unlink(renv::paths$lockfile())
}
Expand Down

0 comments on commit 88c3439

Please sign in to comment.