Skip to content

Commit 32c6ef2

Browse files
authored
1441 change default value of decorators parameter in example_module (#1449)
The same changes as in insightsengineering/teal.modules.general#826 We are unifying `decorators` and `transformators` default values for modules
1 parent acd819f commit 32c6ef2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

R/dummy_functions.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#' to read more about decorators.
1010
#'
1111
#' @inheritParams teal_modules
12-
#' @param decorators `r lifecycle::badge("experimental")` (`list` of `teal_transform_module` or `NULL`) optional,
13-
#' if not `NULL`, decorator for tables or plots included in the module.
12+
#' @param decorators `r lifecycle::badge("experimental")` (`list` of `teal_transform_module`) optional,
13+
#' decorator for `object` included in the module.
1414
#'
1515
#' @return A `teal` module which can be included in the `modules` argument to [init()].
1616
#' @examples
@@ -25,9 +25,9 @@
2525
example_module <- function(label = "example teal module",
2626
datanames = "all",
2727
transformators = list(),
28-
decorators = NULL) {
28+
decorators = list()) {
2929
checkmate::assert_string(label)
30-
checkmate::assert_list(decorators, "teal_transform_module", null.ok = TRUE)
30+
checkmate::assert_list(decorators, "teal_transform_module")
3131

3232
ans <- module(
3333
label,

man/example_module.Rd

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

0 commit comments

Comments
 (0)