Skip to content

Fix error when callr option default is NULL#93

Open
gaborcsardi wants to merge 1 commit into
Genentech:mainfrom
gaborcsardi:fix/null-option-default
Open

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

Conversation

@gaborcsardi
Copy link
Copy Markdown

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.
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