Refactor output.R#2413
Open
simonkrogmann wants to merge 1 commit into
Open
Conversation
simonkrogmann
commented
Jul 16, 2026
|
|
||
| # run updates before loading any packages | ||
| if ("--update" %in% argv) { | ||
| stopifnot(`--update must not be used together with --renv=...` = !any(startsWith(argv, "--renv="))) |
Contributor
Author
There was a problem hiding this comment.
This could be simplified further if loading optparse before the renv is a possible. I;m not sure whether this is possible.
fbenke-pik
reviewed
Jul 16, 2026
| gms$scenarios <- strsplit(grep("(cfg\\$|)gms\\$scenarios +<-", l, value = TRUE), "\"")[[1]][2] | ||
| revision <- as.numeric(unlist(strsplit(grep("(cfg\\$|)inputRevision +<-", l, value = TRUE), "<-[ \t]*"))[2]) | ||
| } | ||
| # Old .cfg files will not be read anymore |
Contributor
There was a problem hiding this comment.
Did you get confirmation from someone in RSE that .cfg files are indeed not used anymore?
Contributor
Author
There was a problem hiding this comment.
@dklein-pik Do you know anything about the .cfg format? To me it looked deprecated since at least 5 years. They were replaced with config.Rdata
Contributor
There was a problem hiding this comment.
Yes, the section can be removed. Thanks.
28337b6 to
2eac430
Compare
2eac430 to
558452f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
I have tested some scripts with some parameter configurations but an exhaustive test is infeasible for me.
Type of change
Indicate the items relevant for your PR by replacing ◻️ with ☑️.
Do not delete any lines. This makes it easier to understand which areas are affected by your changes and which are not.
Parts concerned
Impact
Checklist
Do not delete any line. Leave unfinished elements unchecked so others know how far along you are.
In the end all checkboxes must be ticked before you can merge.
make test) after my final commit and all tests pass (FAIL 0)remind2if and where it was neededforbiddenColumnNamesin readCheckScenarioConfig.R in case the PR leads to deprecated switchesCHANGELOG.mdcorrectly (added, changed, fixed, removed, input data/calibration)Further information (optional)
I'm happy about feedback on the renv handling that this PR touches only tangentially.