Skip to content

Commit 34bc4cd

Browse files
committed
fix: normalize decorators
1 parent 9ec4381 commit 34bc4cd

12 files changed

+15
-17
lines changed

R/tm_a_pca.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ tm_a_pca <- function(label = "Principal Component Analysis",
186186
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
187187

188188
available_decorators <- c("elbow_plot", "circle_plot", "biplot", "eigenvector_plot")
189-
decorators <- normalize_decorators(decorators, available_decorators)
189+
decorators <- normalize_decorators(decorators)
190190
assert_decorators(decorators, null.ok = TRUE, available_decorators)
191191
# End of assertions
192192

R/tm_data_table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ tm_data_table <- function(label = "Data Table",
131131
checkmate::assert_multi_class(pre_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
132132
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
133133

134-
decorators <- normalize_decorators(decorators, "table")
134+
decorators <- normalize_decorators(decorators)
135135
assert_decorators(decorators, null.ok = TRUE, "table")
136136
# End of assertions
137137

R/tm_g_association.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ tm_g_association <- function(label = "Association",
176176
checkmate::assert_list(ggplot2_args, types = "ggplot2_args")
177177
checkmate::assert_subset(names(ggplot2_args), c("default", plot_choices))
178178

179-
decorators <- normalize_decorators(decorators, "plot")
179+
decorators <- normalize_decorators(decorators)
180180
assert_decorators(decorators, null.ok = TRUE, "plot")
181181

182182
# End of assertions

R/tm_g_bivariate.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ tm_g_bivariate <- function(label = "Bivariate Plots",
276276
checkmate::assert_multi_class(pre_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
277277
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
278278

279-
decorators <- normalize_decorators(decorators, "plot")
279+
decorators <- normalize_decorators(decorators)
280280
assert_decorators(decorators, null.ok = TRUE, "plot")
281281
# End of assertions
282282

R/tm_g_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ tm_g_distribution <- function(label = "Distribution Module",
204204
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
205205

206206
available_decorators <- c("histogram_plot", "qq_plot", "test_table", "summary_table")
207-
decorators <- normalize_decorators(decorators, available_decorators)
207+
decorators <- normalize_decorators(decorators)
208208
assert_decorators(decorators, null.ok = TRUE, names = available_decorators)
209209

210210
# End of assertions

R/tm_g_response.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ tm_g_response <- function(label = "Response Plot",
201201
checkmate::assert_multi_class(pre_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
202202
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
203203

204-
decorators <- normalize_decorators(decorators, "plot")
204+
decorators <- normalize_decorators(decorators)
205205
assert_decorators(decorators, null.ok = TRUE, "plot")
206206
# End of assertions
207207

R/tm_g_scatterplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ tm_g_scatterplot <- function(label = "Scatterplot",
308308
checkmate::assert_scalar(table_dec)
309309
checkmate::assert_class(ggplot2_args, "ggplot2_args")
310310

311-
decorators <- normalize_decorators(decorators, "plot")
311+
decorators <- normalize_decorators(decorators)
312312
assert_decorators(decorators, null.ok = TRUE, "plot")
313313

314314
# End of assertions

R/tm_g_scatterplotmatrix.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ tm_g_scatterplotmatrix <- function(label = "Scatterplot Matrix",
203203
checkmate::assert_multi_class(pre_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
204204
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
205205

206-
decorators <- normalize_decorators(decorators, "plot")
206+
decorators <- normalize_decorators(decorators)
207207
assert_decorators(decorators, null.ok = TRUE, "plot")
208208
# End of assertions
209209

R/tm_missing_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ tm_missing_data <- function(label = "Missing data",
153153
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
154154

155155
available_decorators <- c("summary_plot", "summary_plot", "combination_plot", "by_subject_plot", "summary_table")
156-
decorators <- normalize_decorators(decorators, available_decorators)
156+
decorators <- normalize_decorators(decorators)
157157
assert_decorators(decorators, null.ok = TRUE, names = available_decorators)
158158
# End of assertions
159159

R/tm_outliers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ tm_outliers <- function(label = "Outliers Module",
197197
checkmate::assert_multi_class(post_output, c("shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
198198

199199
available_decorators <- c("box_plot", "density_plot", "cumulative_plot", "table")
200-
decorators <- normalize_decorators(decorators, available_decorators)
200+
decorators <- normalize_decorators(decorators)
201201
assert_decorators(decorators, null.ok = TRUE, names = available_decorators)
202202
# End of assertions
203203

0 commit comments

Comments
 (0)