Skip to content

Commit 35540b8

Browse files
Allow expression in size0()
1 parent a21a96e commit 35540b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utilities.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ as_unordered_factor <- function(x) {
803803
size0 <- function(x) {
804804
if (obj_is_vector(x)) {
805805
vec_size(x)
806-
} else if (is.vector(x)) {
806+
} else if (is.vector(x) || is.expression(x)) {
807807
length(x)
808808
} else {
809809
NULL

0 commit comments

Comments
 (0)