From fc51e313db93780b1efd870f1b6bd3b638c909d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Tue, 25 Jul 2023 20:04:04 +0200 Subject: [PATCH] Fix a && on a logical vector Closes https://github.com/r-lib/pkgbuild/issues/170 --- R/binaries.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/binaries.R b/R/binaries.R index 46e6530..a4ba206 100644 --- a/R/binaries.R +++ b/R/binaries.R @@ -6,7 +6,7 @@ update_cache_binaries <- function(destdir, warnings, lib, timestamp, args) { if ("INSTALL_opts" %in% names(args) && - grepl("--no-test-load", args$INSTALL_opts, fixed = TRUE)) return() + any(grepl("--no-test-load", args$INSTALL_opts, fixed = TRUE))) return() if (missing(lib) || is.null(lib)) lib <- .libPaths()[[1]]