From 5338bff21a40342f02368fdac537c4c2c4a3c967 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Fri, 31 May 2024 06:08:35 -0400 Subject: [PATCH] Account for change in `is.atomic()` of R 4.4 (#1691) --- R/types.R | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/R/types.R b/R/types.R index 0b61faf040..da48b6ffb4 100644 --- a/R/types.R +++ b/R/types.R @@ -9,8 +9,8 @@ #' * The predicates for vectors include the `n` argument for #' pattern-matching on the vector length. #' -#' * Unlike `is.atomic()`, `is_atomic()` does not return `TRUE` for -#' `NULL`. +#' * Unlike `is.atomic()` in R < 4.4.0, `is_atomic()` does not return `TRUE` for +#' `NULL`. Starting in R 4.4.0 `is.atomic(NULL)` returns FALSE. #' #' * Unlike `is.vector()`, `is_vector()` tests if an object is an #' atomic vector or a list. `is.vector` checks for the presence of @@ -197,8 +197,9 @@ is_bool <- function(x) { #' * The predicates for vectors include the `n` argument for #' pattern-matching on the vector length. #' -#' * Like [is_atomic()] and unlike base R `is.atomic()`, -#' `is_bare_atomic()` does not return `TRUE` for `NULL`. +#' * Like [is_atomic()] and unlike base R `is.atomic()` for R < 4.4.0, +#' `is_bare_atomic()` does not return `TRUE` for `NULL`. Starting in +#' R 4.4.0, `is.atomic(NULL)` returns FALSE. #' #' * Unlike base R `is.numeric()`, `is_bare_double()` only returns #' `TRUE` for floating point numbers.