From 16467870ffaf863cec9d7388e3e801f3a534cff9 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:41:41 -0500 Subject: [PATCH 1/2] Update comparison --- R/types.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/types.R b/R/types.R index 0b61faf040..36c84f5a39 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 From 3e811dbc04e3357206087856a827cb80200dfd5a Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:43:50 -0500 Subject: [PATCH 2/2] Update types.R --- R/types.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/R/types.R b/R/types.R index 36c84f5a39..da48b6ffb4 100644 --- a/R/types.R +++ b/R/types.R @@ -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.