A text block produces (markdown styled) text, given some (optional) data input.
Usage
new_text_block(server, ui, class, ctor = sys.parent(), ...)
new_glue_block(text = character(), ...)Arguments
- server
A function returning
shiny::moduleServer()- ui
A function with a single argument (
ns) returning ashiny.tag- class
Block subclass
- ctor
String-valued constructor name or function/frame number (mostly for internal use or when defining constructors for virtual classes)
- ...
Forwarded to
new_text_block()andnew_block()- text
String evaluated using
glue::glue()
Glue block
Using glue::glue(), this block allows evaluation of a text string in the
context of datasets to produce (markdown formatted) text as block result.