Skip to content

Commit

Permalink
extend assertion of class of elements passed to modules()
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 23, 2023
1 parent bdc373b commit 464c42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ modules <- function(..., label = "root") {
)
}

checkmate::assert_list(submodules, min.len = 1, any.missing = FALSE, types = c("teal_module", "teal_modules"))
checkmate::assert_list(submodules, min.len = 1, any.missing = FALSE, types = c("teal_module", "teal_module_reporter", "teal_module_landing", "teal_modules"))

Check warning on line 78 in R/modules.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/modules.R,line=78,col=121,[line_length_linter] Lines should not be more than 120 characters.
# name them so we can more easily access the children
# beware however that the label of the submodules should not be changed as it must be kept synced
labels <- vapply(submodules, function(submodule) submodule$label, character(1))
Expand Down

0 comments on commit 464c42c

Please sign in to comment.