Skip to content

Commit ff84eca

Browse files
committed
address #742
1 parent 04d9172 commit ff84eca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/dimensions.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,10 @@ combine_dimensions = function(dots, along, check_dims_identical = TRUE) {
704704
if (along > length(dims)) { # along new dimension:
705705
if (length(dots) > 1 && check_dims_identical) {
706706
for (i in 2:length(dots))
707-
if (! isTRUE(all.equal(dims, st_dimensions(dots[[i]]))))
707+
if (! isTRUE(report <- all.equal(dims, st_dimensions(dots[[i]])))) {
708+
print(report)
708709
stop(paste("dimensions of element", 1, "and", i, "are not identical"))
710+
}
709711
}
710712
dims[[along]] = create_dimension(from = 1, to = length(dots), values = names(dots))
711713
} else {

0 commit comments

Comments
 (0)