From c20190cd4db6b7120304ddb996cc98c6841a0dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Thu, 4 Jun 2026 19:17:29 +0200 Subject: [PATCH] Fix crash when callr option default is 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. --- R/install.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/install.R b/R/install.R index e971b00..af17f08 100644 --- a/R/install.R +++ b/R/install.R @@ -73,7 +73,7 @@ install_process <- R6::R6Class( callr_r_bg = function(...) { # default formal argument values options <- formals(callr::r_bg) - options <- options[vlapply(options, `!=`, bquote())] + options <- options[vlapply(options, function(x) !identical(x, bquote()))] options <- lapply(options, eval, envir = asNamespace("callr")) # ellipsis arguments