NZB launcher: non-interactive start.R + local input-data repository - #6
Merged
Conversation
Two changes so the NZB single-run launcher runs where the input data is provided as a local folder rather than fetched from a remote repository: - start.R: skip the interactive "Update now?" renv prompt (without force- updating) and run fixDeps non-interactively when an NZB launch is detected (NZB_SCENARIO set) or NZB_NONINTERACTIVE=TRUE. Interactive default unchanged. - scripts/start/nzb_launch.R: prepend a local input-data folder to cfg$repositories (default ../BRA_input_data, override NZB_INPUT_DIR) so the input tarballs are read locally and no remote download is needed at run time. Launch via start.R (fixDeps initialises renv); header/docs updated. Verified from a fresh checkout: non-interactive renv, input served from the local folder, BRA region set up automatically, GAMS compiles and solves.
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.
Follow-up to #5. Makes the single-run NZB launcher usable from an automated runner where the input data is provided as a local folder.
fixDepsnon-interactively when an NZB launch is detected (NZB_SCENARIOset) orNZB_NONINTERACTIVE=TRUE. The interactive default for normal runs is unchanged.cfg$repositories(default../BRA_input_data, override withNZB_INPUT_DIR) so the input tarballs are read locally and no remote download happens at run time. Recommend launching viastart.R(itsfixDepsinitialises renv); header/docs updated accordingly.Verified from a fresh checkout: non-interactive renv, input served entirely from the local folder, BRA region set up automatically, GAMS compiles and solves.