Skip to content

Commit

Permalink
Merge pull request #688 from pascal-sauer/develop
Browse files Browse the repository at this point in the history
turn renv::snapshot error into warning
  • Loading branch information
pascal-sauer authored Jun 18, 2024
2 parents 91c2c0c + a8ab9a4 commit 089f991
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion output.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ runOutputs <- function(comp=NULL, output=NULL, outputdir=NULL, submit=NULL) {
}, type = "message")
})
if (!snapshotSuccess) {
stop(paste(errorMessage1, collapse = "\n"), paste(errorMessage2, collapse = "\n"))
warning(paste(errorMessage1, collapse = "\n"), paste(errorMessage2, collapse = "\n"))
}
message("done.")

Expand All @@ -172,6 +172,8 @@ runOutputs <- function(comp=NULL, output=NULL, outputdir=NULL, submit=NULL) {
if (!file.exists(file.path(runFolder, "renv.lock"))) {
warning(normalizePath(runFolder), "/renv.lock does not exist.")
message("Lockfile written to ", newLockfile)
} else if (!file.exists(newLockfile)) {
message("Could not write lockfile, see warning thrown earlier.")
} else if (identical(readLines(file.path(runFolder, "renv.lock")), readLines(newLockfile))) {
file.remove(newLockfile)
} else {
Expand Down

0 comments on commit 089f991

Please sign in to comment.