Skip to content

Commit

Permalink
Merge pull request #1396 from orichters/scenconf
Browse files Browse the repository at this point in the history
don't fail on empty config file rows
  • Loading branch information
orichters authored Sep 6, 2023
2 parents 376c8f7 + fdde5f8 commit 2e38975
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/start/readCheckScenarioConfig.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ readCheckScenarioConfig <- function(filename, remindPath = ".", testmode = FALSE
} else {
cfg <- gms::readDefaultConfig(remindPath)
}
scenConf <- read.csv2(filename, stringsAsFactors = FALSE, row.names = 1, na.strings = "", comment.char = "#")
scenConf <- read.csv2(filename, stringsAsFactors = FALSE, na.strings = "", comment.char = "#")
scenConf <- scenConf[! is.na(scenConf[1]), ]
rownames(scenConf) <- scenConf[, 1]
scenConf[1] <- NULL
toolong <- nchar(rownames(scenConf)) > 75
if (any(toolong)) {
warning("These titles are too long: ",
Expand Down

0 comments on commit 2e38975

Please sign in to comment.