Skip to content

Commit 9aede6f

Browse files
completeness comment
1 parent 769ccc1 commit 9aede6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expect-shape.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ expect_shape = function(object, shape, nrow, ncol) {
6161
act$nrow == nrow,
6262
sprintf("%s has %i rows, not %i.", act$lab, act$nrow, nrow)
6363
)
64-
} else {
64+
} else { # !missing(nrow) && !missing(ncol)
6565
# testing both nrow & ncol (useful, e.g., for testing dim(.)[1:2] for arrays
6666
act$nrow <- dim_object[1L]
6767
act$ncol <- dim_object[2L]

0 commit comments

Comments
 (0)