Skip to content

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

Open
SermetPekin wants to merge 1 commit intoPredictiveEcology:masterfrom
SermetPekin:dev
Open

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

Conversation

@SermetPekin
Copy link

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.

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.

1 participant