From 26b0b1eadf34b470d2190c728e8b68e5f4cc22d0 Mon Sep 17 00:00:00 2001 From: Maximilian Muecke Date: Mon, 27 Jan 2025 22:37:06 +0100 Subject: [PATCH] perf: use `anyNA()` --- R/expect-known.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/expect-known.R b/R/expect-known.R index 55c7f7781..ebe56e901 100644 --- a/R/expect-known.R +++ b/R/expect-known.R @@ -215,5 +215,5 @@ expect_known_hash <- function(object, hash = NULL) { } all_utf8 <- function(x) { - ! any(is.na(iconv(x, "UTF-8", "UTF-8"))) + !anyNA(iconv(x, "UTF-8", "UTF-8")) }