Skip to content

Commit

Permalink
Reverting previous commit: throw warning instead of error if reportin…
Browse files Browse the repository at this point in the history
…g runs with renv other than that of the run.
  • Loading branch information
dklein-pik committed Jun 20, 2024
1 parent 1346cb6 commit b7d0ef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/start/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,11 @@ run <- function() {
# make sure the renv used for the run is also used for generating output
if (!is.null(renv::project())) {
if (normalizePath(renv::project()) != normalizePath(outputdir)) {
stop("loaded renv=", normalizePath(renv::project()), " and outputdir=", normalizePath(outputdir), " must be equal.")
warning("loaded renv=", normalizePath(renv::project()), " and outputdir=", normalizePath(outputdir), " must be equal.")
}
argv <- c(get0("argv"), paste0("--renv=", renv::project()))
}
message("Using ", normalizePath(renv::project()), " as renv project")

sys.source("output.R",envir=new.env())
# get runtime for output
Expand Down

0 comments on commit b7d0ef3

Please sign in to comment.