From 0f98936d5150b6a152678dfa3d23a27d40659ef3 Mon Sep 17 00:00:00 2001 From: Sebastian Fischer Date: Tue, 23 Jan 2024 13:15:28 +0100 Subject: [PATCH] Update R/shape.R --- R/shape.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/shape.R b/R/shape.R index 3afe0bb9..4b5bdc36 100644 --- a/R/shape.R +++ b/R/shape.R @@ -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)