Skip to content

NZB launcher: non-interactive start.R + local input-data repository - #6

Merged
alexkoberle merged 1 commit into
emis_cap_regfrom
nzb-local-input-repo
Jul 7, 2026
Merged

NZB launcher: non-interactive start.R + local input-data repository#6
alexkoberle merged 1 commit into
emis_cap_regfrom
nzb-local-input-repo

Conversation

@flohump

@flohump flohump commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

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.

  • start.R: skip the interactive "Update now?" renv prompt (without force-updating packages) and run fixDeps non-interactively when an NZB launch is detected (NZB_SCENARIO set) or NZB_NONINTERACTIVE=TRUE. The interactive default for normal runs is unchanged.
  • scripts/start/nzb_launch.R: prepend a local input-data folder to cfg$repositories (default ../BRA_input_data, override with NZB_INPUT_DIR) so the input tarballs are read locally and no remote download happens at run time. Recommend launching via start.R (its fixDeps initialises 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.

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.
@alexkoberle
alexkoberle merged commit 99b4556 into emis_cap_reg Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants