Skip to content

Commit da07b9f

Browse files
authored
Update R/utils.R
Signed-off-by: André Veríssimo <[email protected]>
1 parent ef79bf1 commit da07b9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/utils.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ set_chunk_attrs <- function(teal_card,
433433
#'
434434
#' @keywords internal
435435
set_chunk_dims <- function(pws, decorated_output_q, inner_classes = NULL) {
436-
checkmate::assert_class(pws, "plot_widget")
436+
checkmate::assert_list(pws)
437+
checkmate::assert_names(names(pws), must.include = "dim")
438+
assert_reactive(pws$dim)
437439
checkmate::assert_class(decorated_output_q, "reactive")
438440
checkmate::assert_character(inner_classes, null.ok = TRUE)
439441

0 commit comments

Comments
 (0)