Skip to content

Commit 1208b4e

Browse files
committed
replace assertions
1 parent 7e89058 commit 1208b4e

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

R/tm_a_pca.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ tm_a_pca <- function(label = "Principal Component Analysis",
187187

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

193193
# Make UI args

R/tm_g_association.R

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

179179
decorators <- normalize_decorators(decorators)
180-
assert_decorators(decorators, null.ok = TRUE, "plot")
180+
assert_decorators(decorators, "plot")
181181
# End of assertions
182182

183183
# Make UI args

R/tm_g_bivariate.R

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

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

284284
# Make UI args

R/tm_g_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ tm_g_distribution <- function(label = "Distribution Module",
195195

196196
available_decorators <- c("histogram_plot", "qq_plot", "test_table", "summary_table")
197197
decorators <- normalize_decorators(decorators)
198-
assert_decorators(decorators, null.ok = TRUE, names = available_decorators)
198+
assert_decorators(decorators, names = available_decorators)
199199

200200
# End of assertions
201201

R/tm_g_response.R

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

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

209209
# Make UI args

R/tm_g_scatterplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ tm_g_scatterplot <- function(label = "Scatterplot",
300300
checkmate::assert_class(ggplot2_args, "ggplot2_args")
301301

302302
decorators <- normalize_decorators(decorators)
303-
assert_decorators(decorators, null.ok = TRUE, "plot")
303+
assert_decorators(decorators, "plot")
304304

305305
# End of assertions
306306

R/tm_g_scatterplotmatrix.R

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

202202
decorators <- normalize_decorators(decorators)
203-
assert_decorators(decorators, null.ok = TRUE, "plot")
203+
assert_decorators(decorators, "plot")
204204
# End of assertions
205205

206206
# Make UI args

R/tm_missing_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ tm_missing_data <- function(label = "Missing data",
147147

148148
available_decorators <- c("summary_plot", "combination_plot", "by_subject_plot", "summary_table")
149149
decorators <- normalize_decorators(decorators)
150-
assert_decorators(decorators, null.ok = TRUE, names = available_decorators)
150+
assert_decorators(decorators, names = available_decorators)
151151
# End of assertions
152152

153153
ans <- module(

R/tm_outliers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ tm_outliers <- function(label = "Outliers Module",
198198

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

204204
# Make UI args

R/tm_t_crosstable.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ tm_t_crosstable <- function(label = "Cross Table",
165165
checkmate::assert_class(basic_table_args, classes = "basic_table_args")
166166

167167
decorators <- normalize_decorators(decorators)
168-
assert_decorators(decorators, null.ok = TRUE, "plot")
168+
assert_decorators(decorators, "plot")
169169
# End of assertions
170170

171171
# Make UI args

0 commit comments

Comments
 (0)