Skip to content

Commit 7719735

Browse files
vedhavm7pr
andauthored
Fix decorators (#855)
Closes #850 --------- Co-authored-by: Marcin <133694481+m7pr@users.noreply.github.com>
1 parent b81b209 commit 7719735

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Imports:
4848
lattice (>= 0.18-4),
4949
lifecycle (>= 0.2.0),
5050
MASS (>= 7.3-61),
51-
rlistings (>= 0.2.8),
5251
rtables (>= 0.6.8),
5352
scales (>= 1.3.0),
5453
shinyjs (>= 2.1.0),

R/tm_g_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ srv_distribution <- function(id,
541541

542542
qenv <- teal.code::eval_code(
543543
data(),
544-
'library("ggplot2");library("rlistings");library("dplyr")' # nolint quotes
544+
'library("ggplot2");library("dplyr")' # nolint quotes
545545
)
546546

547547
anl_merged_q <- reactive({

R/tm_missing_data.R

Lines changed: 4 additions & 4 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.
@@ -1114,7 +1114,7 @@ srv_missing_data <- function(id,
11141114
qenv <- if (!is.null(group_var)) {
11151115
common_code_libraries_q <- teal.code::eval_code(
11161116
common_code_q(),
1117-
'library("forcats");library("glue");library("rlistings")' # nolint quotes
1117+
'library("forcats");library("glue");' # nolint quotes
11181118
)
11191119
teal.code::eval_code(
11201120
common_code_libraries_q,
@@ -1154,7 +1154,7 @@ srv_missing_data <- function(id,
11541154
)
11551155
}
11561156

1157-
within(qenv, table <- rlistings::as_listing(summary_data))
1157+
within(qenv, table <- DT::datatable(summary_data))
11581158
})
11591159

11601160
by_subject_plot_q <- reactive({
@@ -1331,7 +1331,7 @@ srv_missing_data <- function(id,
13311331
options = list(language = list(zeroRecords = "No variable selected."), pageLength = input$levels_table_rows)
13321332
)
13331333
} else {
1334-
DT::datatable(decorated_summary_table_q()[["summary_data"]])
1334+
decorated_summary_table_q()[["table"]]
13351335
}
13361336
})
13371337

R/tm_outliers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var,
443443
data(),
444444
paste0(
445445
'library("dplyr");library("tidyr");', # nolint quotes
446-
'library("tibble");library("ggplot2");library("rlistings")'
446+
'library("tibble");library("ggplot2");'
447447
)
448448
) %>% # nolint quotes
449449
teal.code::eval_code(as.expression(anl_merged_input()$expr))

man/tm_missing_data.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)