From ec6b3bb071e6bd8ef313b7e13e02116305500094 Mon Sep 17 00:00:00 2001 From: go_gonzo Date: Wed, 22 Nov 2023 09:29:50 +0100 Subject: [PATCH] add assert --- R/tm_g_association.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/tm_g_association.R b/R/tm_g_association.R index f402e2b58..6b7e35c38 100644 --- a/R/tm_g_association.R +++ b/R/tm_g_association.R @@ -222,6 +222,8 @@ srv_tm_g_association <- function(id, ggplot2_args) { with_reporter <- !missing(reporter) && inherits(reporter, "Reporter") with_filter <- !missing(filter_panel_api) && inherits(filter_panel_api, "FilterPanelAPI") + checkmate::assert_class(data, "reactive") + checkmate::assert_class(isolate(data()), "teal_data") moduleServer(id, function(input, output, session) { selector_list <- teal.transform::data_extract_multiple_srv(