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")) }