We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769ccc1 commit 9aede6fCopy full SHA for 9aede6f
R/expect-shape.R
@@ -61,7 +61,7 @@ expect_shape = function(object, shape, nrow, ncol) {
61
act$nrow == nrow,
62
sprintf("%s has %i rows, not %i.", act$lab, act$nrow, nrow)
63
)
64
- } else {
+ } else { # !missing(nrow) && !missing(ncol)
65
# testing both nrow & ncol (useful, e.g., for testing dim(.)[1:2] for arrays
66
act$nrow <- dim_object[1L]
67
act$ncol <- dim_object[2L]
0 commit comments