Skip to content

Commit 91ad352

Browse files
authored
Add missing transformators arg (#839)
`transformators` arg is addressed in `teal`. Every module which has `data` in the server needs a `transformators` argument
1 parent ee725dd commit 91ad352

File tree

7 files changed

+29
-11
lines changed

7 files changed

+29
-11
lines changed

R/tm_data_table.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ tm_data_table <- function(label = "Data Table",
9595
),
9696
server_rendering = FALSE,
9797
pre_output = NULL,
98-
post_output = NULL) {
98+
post_output = NULL,
99+
transformators = list()) {
99100
message("Initializing tm_data_table")
100101

101102
# Start of assertions
@@ -145,7 +146,8 @@ tm_data_table <- function(label = "Data Table",
145146
ui_args = list(
146147
pre_output = pre_output,
147148
post_output = post_output
148-
)
149+
),
150+
transformators = transformators
149151
)
150152
attr(ans, "teal_bookmarkable") <- TRUE
151153
ans

R/tm_front_page.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ tm_front_page <- function(label = "Front page",
7272
additional_tags = tagList(),
7373
footnotes = character(0),
7474
show_metadata = deprecated(),
75-
datanames = if (missing(show_metadata)) NULL else "all") {
75+
datanames = if (missing(show_metadata)) NULL else "all",
76+
transformators = list()) {
7677
message("Initializing tm_front_page")
7778

7879
# Start of assertions
@@ -105,7 +106,8 @@ tm_front_page <- function(label = "Front page",
105106
ui = ui_front_page,
106107
ui_args = args,
107108
server_args = list(tables = tables),
108-
datanames = datanames
109+
datanames = datanames, ,
110+
transformators = transformators
109111
)
110112
attr(ans, "teal_bookmarkable") <- TRUE
111113
ans

R/tm_variable_browser.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ tm_variable_browser <- function(label = "Variable Browser",
8484
parent_dataname = "ADSL",
8585
pre_output = NULL,
8686
post_output = NULL,
87-
ggplot2_args = teal.widgets::ggplot2_args()) {
87+
ggplot2_args = teal.widgets::ggplot2_args(),
88+
transformators = list()) {
8889
message("Initializing tm_variable_browser")
8990

9091
# Start of assertions
@@ -126,7 +127,8 @@ tm_variable_browser <- function(label = "Variable Browser",
126127
ui_args = list(
127128
pre_output = pre_output,
128129
post_output = post_output
129-
)
130+
),
131+
transformators = transformators
130132
)
131133
# `shiny` inputs are stored properly but the majority of the module is state of `datatable` which is not stored.
132134
attr(ans, "teal_bookmarkable") <- NULL

man/tm_data_table.Rd

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

man/tm_front_page.Rd

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

man/tm_g_distribution.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tm_variable_browser.Rd

Lines changed: 5 additions & 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)