Skip to content

Fix error when callr option default is NULL#93

Merged
maksymiuks merged 1 commit into
Genentech:mainfrom
gaborcsardi:fix/null-option-default
Jun 8, 2026
Merged

Fix error when callr option default is NULL#93
maksymiuks merged 1 commit into
Genentech:mainfrom
gaborcsardi:fix/null-option-default

Conversation

@gaborcsardi

Copy link
Copy Markdown
Contributor

Dev callr (about to be submitted to CRAN) has changed the default value of one of its options to NULL. This makes the checked package fail R CMD check. This PR fixes that.

NULL != bquote() returns logical(0) instead of TRUE, causing vapply() to error. Use !identical(x, bquote()) which correctly returns a scalar logical for any value including NULL.

Dev callr (about to be submitted to CRAN) has changed the default
value of one of its options to `NULL`. This makes the checked
package fail `R CMD check`. This PR fixes that.

`NULL != bquote()` returns `logical(0)` instead of `TRUE`, causing
`vapply()` to error. Use `!identical(x, bquote())` which correctly
returns a scalar logical for any value including NULL.
@maksymiuks

Copy link
Copy Markdown
Collaborator

Thanks for the fix and letting us know!

@maksymiuks maksymiuks merged commit e13f0a3 into Genentech:main Jun 8, 2026
5 of 6 checks 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