Skip to content

Commit

Permalink
Fix: Reorder conditions, since it is possible that sumErrFile exists,…
Browse files Browse the repository at this point in the history
… but no reporting mif.
  • Loading branch information
dklein-pik committed Mar 8, 2024
1 parent e1025b3 commit 1cd4462
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/getRunStatus.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ getRunStatus <- function(mydir = dir(), sort = "nf", user = NULL) {
} else {
miffile <- paste0(ii, "/REMIND_generic_", cfg[["title"]], ".mif")
sumErrFile <- paste0(ii, "/REMIND_generic_", cfg[["title"]], "_summation_errors.csv")
if (file.exists(sumErrFile)){
if (! file.exists(miffile)){
out[i, "Mif"] <- "no"
} else if (file.exists(sumErrFile)){
out[i, "Mif"] <- "sumErr"
} else if (file.exists(miffile)){
out[i, "Mif"] <- "yes"
} else {
out[i, "Mif"] <- "no"
out[i, "Mif"] <- "yes"
}
}
}
Expand Down

0 comments on commit 1cd4462

Please sign in to comment.