Skip to content

Commit

Permalink
Update R/shape.R
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer authored Jan 23, 2024
1 parent 560e9ee commit 0f98936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/shape.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ check_shape = function(shape, null_ok = FALSE, unknown_batch = NULL) {
if (test_shape(shape, null_ok = null_ok, unknown_batch = unknown_batch)) {
return(TRUE)
}
stopf("Invalid shape: %s.", paste0(format(shape), collapse = ", "))
sprintf("Invalid shape: %s.", paste0(format(shape), collapse = ", "))
}
assert_shapes = function(shapes, coerce = TRUE, named = FALSE, null_ok = FALSE, unknown_batch = NULL) { # nolint
ok = test_list(shapes, names = if (named && !identical(unique(names(shapes)), "...")) "unique", min.len = 1L)
Expand Down

0 comments on commit 0f98936

Please sign in to comment.