Skip to content

Commit 50a415b

Browse files
mmaechlerjimhester
authored andcommitted
in R-devel (R >= 4.4.0) is.atomic(NULL) is false
1 parent 7f963e2 commit 50a415b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Encoding: UTF-8
22
Package: covr
33
Title: Test Coverage for Packages
4-
Version: 3.5.1.9003
4+
Version: 3.5.1.9004
55
Authors@R: c(
66
person("Jim", "Hester", email = "[email protected]", role = c("aut", "cre")),
77
person("Willem", "Ligtenberg", role = "ctb"),

R/trace_calls.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trace_calls <- function (x, parent_functions = NULL, parent_ref = NULL) {
2828
lapply(y, trace_calls, parent_functions = parent_functions)
2929
}
3030

31-
if (is.atomic(x) || is.name(x)) {
31+
if (is.atomic(x) || is.name(x) || is.null(x)) {
3232
if (is.null(parent_ref)) {
3333
x
3434
}

0 commit comments

Comments
 (0)