Skip to content

Fix inconsistent getOption("Require.usePak") fallback values#142

Merged
eliotmcintire merged 1 commit intoPredictiveEcology:masterfrom
SermetPekin:dev
Mar 31, 2026
Merged

Fix inconsistent getOption("Require.usePak") fallback values#142
eliotmcintire merged 1 commit intoPredictiveEcology:masterfrom
SermetPekin:dev

Conversation

@SermetPekin
Copy link
Copy Markdown
Contributor

RequireOptions() declares Require.usePak = FALSE as the package default, but three call sites used getOption("Require.usePak", TRUE) as an inline fallback, which would silently activate pak if the option was ever unset.

This PR changes all three fallbacks from TRUE to FALSE to be consistent with the declared default:

  • [Require2.R] line 319
  • [pkgDep3.R] line 133
  • [extract.R] line 119

No behavior change under normal usage (since .onLoad sets the option via RequireOptions()), but this prevents unexpected pak activation if the option is reset to NULL.

@eliotmcintire eliotmcintire merged commit 16f7cb1 into PredictiveEcology:master Mar 31, 2026
7 of 12 checks passed
eliotmcintire pushed a commit that referenced this pull request Mar 31, 2026
Fix inconsistent getOption("Require.usePak") fallback values
@eliotmcintire
Copy link
Copy Markdown
Contributor

Thanks!

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