Skip to content

Commit 5338bff

Browse files
authored
Account for change in is.atomic() of R 4.4 (#1691)
1 parent 2fb66b4 commit 5338bff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

R/types.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#' * The predicates for vectors include the `n` argument for
1010
#' pattern-matching on the vector length.
1111
#'
12-
#' * Unlike `is.atomic()`, `is_atomic()` does not return `TRUE` for
13-
#' `NULL`.
12+
#' * Unlike `is.atomic()` in R < 4.4.0, `is_atomic()` does not return `TRUE` for
13+
#' `NULL`. Starting in R 4.4.0 `is.atomic(NULL)` returns FALSE.
1414
#'
1515
#' * Unlike `is.vector()`, `is_vector()` tests if an object is an
1616
#' atomic vector or a list. `is.vector` checks for the presence of
@@ -197,8 +197,9 @@ is_bool <- function(x) {
197197
#' * The predicates for vectors include the `n` argument for
198198
#' pattern-matching on the vector length.
199199
#'
200-
#' * Like [is_atomic()] and unlike base R `is.atomic()`,
201-
#' `is_bare_atomic()` does not return `TRUE` for `NULL`.
200+
#' * Like [is_atomic()] and unlike base R `is.atomic()` for R < 4.4.0,
201+
#' `is_bare_atomic()` does not return `TRUE` for `NULL`. Starting in
202+
#' R 4.4.0, `is.atomic(NULL)` returns FALSE.
202203
#'
203204
#' * Unlike base R `is.numeric()`, `is_bare_double()` only returns
204205
#' `TRUE` for floating point numbers.

0 commit comments

Comments
 (0)