Skip to content

Commit

Permalink
in R-devel (R >= 4.4.0) is.atomic(NULL) is false
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaechler committed Sep 27, 2023
1 parent 7f963e2 commit 96055b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Encoding: UTF-8
Package: covr
Title: Test Coverage for Packages
Version: 3.5.1.9003
Version: 3.5.1.9004
Authors@R: c(
person("Jim", "Hester", email = "[email protected]", role = c("aut", "cre")),
person("Willem", "Ligtenberg", role = "ctb"),
Expand Down
2 changes: 1 addition & 1 deletion R/trace_calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ trace_calls <- function (x, parent_functions = NULL, parent_ref = NULL) {
lapply(y, trace_calls, parent_functions = parent_functions)
}

if (is.atomic(x) || is.name(x)) {
if (is.atomic(x) || is.name(x) || is.null(x)) {
if (is.null(parent_ref)) {
x
}
Expand Down

0 comments on commit 96055b2

Please sign in to comment.