|
29 | 29 | #' |
30 | 30 | #' @section Decorating `tm_outliers`: |
31 | 31 | #' |
32 | | -#' This module creates below objects that can be modified with decorators: |
| 32 | +#' This module generates the following objects, which can be modified in place using decorators: |
33 | 33 | #' - `table` (`data.frame`) |
34 | 34 | #' - `plot` (`ggplot2`) |
35 | 35 | #' |
@@ -984,6 +984,7 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var, |
984 | 984 |
|
985 | 985 | decorated_boxplot_q <- srv_teal_transform_data("boxplot_decorator", data = boxplot_q, transformators = decorators$boxplot) |
986 | 986 | decorated_violin_q <- srv_teal_transform_data("violin_decorator", data = boxplot_q, transformators = decorators$violin) |
| 987 | + # TODO decorated_violin_q is not used anywhere |
987 | 988 | decorated_density_plot_q <- srv_teal_transform_data("density_decorator", data = density_plot_q, transformators = decorators$density) |
988 | 989 | decorated_cumulative_plot_q <- srv_teal_transform_data("cum_dist_decorator", data = cumulative_plot_q, transformators = decorators$cum_dist) |
989 | 990 |
|
@@ -1020,8 +1021,7 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var, |
1020 | 1021 |
|
1021 | 1022 | decorated_final_q <- |
1022 | 1023 | srv_teal_transform_data("cum_dist_decorator", data = final_q, transformators = decorators$table_decorator) |
1023 | | - # TODO: |
1024 | | - # reuse decorated_final_q in table generation |
| 1024 | + # TODO: reuse decorated_final_q in table generation |
1025 | 1025 |
|
1026 | 1026 | # slider text |
1027 | 1027 | output$ui_outlier_help <- renderUI({ |
@@ -1301,7 +1301,7 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var, |
1301 | 1301 | card$append_text("Comment", "header3") |
1302 | 1302 | card$append_text(comment) |
1303 | 1303 | } |
1304 | | - card$append_src(teal.code::get_code(final_q())) |
| 1304 | + card$append_src(teal.code::get_code(req(final_q()))) |
1305 | 1305 | card |
1306 | 1306 | } |
1307 | 1307 | teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun) |
|
0 commit comments