@@ -166,10 +166,10 @@ module <- function(label = "module",
166166 call. = FALSE
167167 )
168168 }
169- if (label == " Report previewer " ) {
169+ if (label == " Report Previewer " ) {
170170 stop(
171171 sprintf(" module(label = \" %s\" , ...\n " , label ),
172- " Label 'Report previewer ' is reserved in teal. Please change to something else." ,
172+ " Label 'Report Previewer ' is reserved in teal. Please change to something else." ,
173173 call. = FALSE
174174 )
175175 }
@@ -339,11 +339,12 @@ modules <- function(..., label = character(0)) {
339339# ' cat(format(mod))
340340# ' @export
341341format.teal_module <- function (
342- x ,
343- is_last = FALSE ,
344- parent_prefix = " " ,
345- what = c(" datasets" , " properties" , " ui_args" , " server_args" , " decorators" , " transformators" ),
346- ... ) {
342+ x ,
343+ is_last = FALSE ,
344+ parent_prefix = " " ,
345+ what = c(" datasets" , " properties" , " ui_args" , " server_args" , " decorators" , " transformators" ),
346+ ...
347+ ) {
347348 empty_text <- " "
348349 branch <- if (is_last ) " L-" else " |-"
349350 current_prefix <- paste0(parent_prefix , branch , " " )
@@ -443,13 +444,13 @@ format.teal_module <- function(
443444# ' @rdname teal_modules
444445# ' @examples
445446# ' custom_module <- function(
446- # ' label = "label", ui_args = NULL, server_args = NULL,
447- # ' datanames = "all", transformators = list(), bk = FALSE) {
447+ # ' label = "label", ui_args = NULL, server_args = NULL,
448+ # ' datanames = "all", transformators = list(), bk = FALSE
449+ # ' ) {
448450# ' ans <- module(
449451# ' label,
450452# ' server = function(id, data, ...) {},
451- # ' ui = function(id, ...) {
452- # ' },
453+ # ' ui = function(id, ...) {},
453454# ' datanames = datanames,
454455# ' transformators = transformators,
455456# ' ui_args = ui_args,
0 commit comments