|
25 | 25 | #' - `biplot` (`ggplot2`) |
26 | 26 | #' - `eigenvector_plot` (`ggplot2`) |
27 | 27 | #' |
28 | | -#' Decorators can be applied to all outputs or only to specific objects using a |
29 | | -#' named list of `teal_transform_module` objects. |
30 | | -#' The `"default"` name is reserved for decorators that are applied to all outputs. |
| 28 | +#' A Decorator is applied to the specific output using a named list of `teal_transform_module` objects. |
| 29 | +#' The name of this list corresponds to the name of the output to which the decorator is applied. |
31 | 30 | #' See code snippet below: |
32 | 31 | #' |
33 | 32 | #' ``` |
34 | 33 | #' tm_a_pca( |
35 | 34 | #' ..., # arguments for module |
36 | 35 | #' decorators = list( |
37 | | -#' default = list(teal_transform_module(...)), # applied to all outputs |
38 | | -#' elbow_plot = list(teal_transform_module(...)), # applied only to `elbow_plot` output |
39 | | -#' circle_plot = list(teal_transform_module(...)) # applied only to `circle_plot` output |
40 | | -#' biplot = list(teal_transform_module(...)) # applied only to `biplot` output |
41 | | -#' eigenvector_plot = list(teal_transform_module(...)) # applied only to `eigenvector_plot` output |
| 36 | +#' elbow_plot = teal_transform_module(...), # applied to the `elbow_plot` output |
| 37 | +#' circle_plot = teal_transform_module(...), # applied to the `circle_plot` output |
| 38 | +#' biplot = teal_transform_module(...), # applied to the `biplot` output |
| 39 | +#' eigenvector_plot = teal_transform_module(...) # applied to the `eigenvector_plot` output |
42 | 40 | #' ) |
43 | 41 | #' ) |
44 | 42 | #' ``` |
@@ -186,9 +184,7 @@ tm_a_pca <- function(label = "Principal Component Analysis", |
186 | 184 | checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE) |
187 | 185 |
|
188 | 186 | available_decorators <- c("elbow_plot", "circle_plot", "biplot", "eigenvector_plot") |
189 | | - decorators <- normalize_decorators(decorators) |
190 | 187 | assert_decorators(decorators, available_decorators) |
191 | | - # End of assertions |
192 | 188 |
|
193 | 189 | # Make UI args |
194 | 190 | args <- as.list(environment()) |
|
0 commit comments