Fix: null defaults, logical envvar parsing #34

Merged
dgkf merged 3 commits from 33-null-defaults into main 2025-03-28 22:02:13 +01:00
Owner

Closes #33
Closes #32

  • Fixed define_options when using a NULL default value. Previously,
    the NULL value would not be recognized and would silently ignore the
    option definition. (@dgkf #34)

  • Fixed envvar_is.logical (and thereby, envvar_is_true, envvar_is_false),
    leveraging as.logical internally to make the parsing from strings align
    more closely to what one may expect in R. Notably, all lowercase values
    true and false will now be recognized as their respective logical values.
    (@dgkf #34)

Closes #33 Closes #32 * Fixed `define_options` when using a `NULL` default value. Previously, the `NULL` value would not be recognized and would silently ignore the option definition. (@dgkf #34) * Fixed `envvar_is.logical` (and thereby, `envvar_is_true`, `envvar_is_false`), leveraging `as.logical` internally to make the parsing from strings align more closely to what one may expect in R. Notably, all lowercase values `true` and `false` will now be recognized as their respective logical values. (@dgkf #34)
test ci
All checks were successful
ci/woodpecker/pr/r-pkg-standard Pipeline was successful
8fc0fbf6fb
dgkf merged commit 3de5a6e8dc into main 2025-03-28 22:02:13 +01:00
dgkf deleted branch 33-null-defaults 2025-03-28 22:02:14 +01:00
Sign in to join this conversation.
No description provided.