new_block.Rd
Blocks consist of an expression that defines what the block produces (given the result of the previous block combined with user input), plus a class attribute
new_block(
server,
ui,
class,
ctor,
ctor_pkg,
dat_valid = NULL,
allow_empty_state = FALSE,
name = NULL,
...
)
is_block(x)
as_block(x, ...)
# S3 method for class 'block'
as_block(x, ...)
# S3 method for class 'list'
as_block(x, ...)
block_name(x)
block_name(x) <- value
block_ctor(x)
block_expr_server(x)
block_expr_ui(x)
block_dat_valid(x)
block_has_data_validator(x)
validate_data_inputs(x, data)
block_inputs(x, ...)
# S3 method for class 'block'
block_inputs(x, ...)
block_arity(x)
blocks(...)
is_blocks(x)
as_blocks(x, ...)
# S3 method for class 'blocks'
as_blocks(x, ...)
# S3 method for class 'list'
as_blocks(x, ...)
# S3 method for class 'block'
as_blocks(x, ...)
# S3 method for class 'board'
block_inputs(x, ...)
new_data_block(server, ui, class, ctor = sys.parent(), ...)
new_file_block(server, ui, class, ctor = sys.parent(), ...)
new_parser_block(server, ui, class, ctor = sys.parent(), ...)
new_plot_block(server, ui, class, ctor = sys.parent(), ...)
new_transform_block(server, ui, class, ctor = sys.parent(), ...)
A function returning shiny::moduleServer()
A function with a single argument (ns
) returning a shiny.tag
Block subclass
Constructor name (or function/frame number)
Package name (or NULL
)
(Optioanl) input data validator
Either TRUE
, FALSE
or a character vector of
state
values that may be empty while still moving forward with block eval
Block name
Further (metadata) attributes
An object inheriting from "block"
New value
Data inputs