Skip to content

Commit 7835cf3

Browse files
committed
fix: decorate datatables instead of listing_df
1 parent 8cd7d71 commit 7835cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/tm_missing_data.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#' - `summary_plot` (`grob` created with [ggplot2::ggplotGrob()])
2424
#' - `combination_plot` (`grob` created with [ggplot2::ggplotGrob()])
2525
#' - `by_subject_plot` (`ggplot2`)
26-
#' - `table` (`listing_df` created with [rlistings::as_listing()])
26+
#' - `table` (`datatable` created with [DT::datatable()])
2727
#'
2828
#' A Decorator is applied to the specific output using a named list of `teal_transform_module` objects.
2929
#' The name of this list corresponds to the name of the output to which the decorator is applied.
@@ -1147,7 +1147,7 @@ srv_missing_data <- function(id,
11471147
)
11481148
}
11491149

1150-
within(qenv, table <- rlistings::as_listing(summary_data))
1150+
within(qenv, table <- DT::datatable(summary_data))
11511151
})
11521152

11531153
by_subject_plot_q <- reactive({
@@ -1324,7 +1324,7 @@ srv_missing_data <- function(id,
13241324
options = list(language = list(zeroRecords = "No variable selected."), pageLength = input$levels_table_rows)
13251325
)
13261326
} else {
1327-
DT::datatable(decorated_summary_table_q()[["summary_data"]])
1327+
decorated_summary_table_q()[["table"]]
13281328
}
13291329
})
13301330

0 commit comments

Comments
 (0)