Wire the standard ggpaintr server behavior into an existing Shiny app.
The returned state object exposes reactive access to the parsed formula,
latest runtime result, and current dynamic var UI definitions so callers
can extend the app with additional observers and outputs.
Usage
ptr_server(
input,
output,
session,
formula,
envir = parent.frame(),
ui_text = NULL,
placeholders = NULL,
ids = ptr_build_ids(),
expr_check = TRUE
)Arguments
- input
A Shiny
inputobject.- output
A Shiny
outputobject.- session
A Shiny
sessionobject.- formula
A single formula string using
ggpaintrplaceholders.- envir
Environment used to resolve local data objects when building the app.
- ui_text
Optional named list of copy overrides for UI labels, helper text, and placeholders.
- placeholders
Optional custom placeholder definitions or an existing placeholder registry.
- ids
A
ptr_build_idsobject controlling the Shiny element IDs used by the integration helpers. Defaults toptr_build_ids().- expr_check
Controls
exprplaceholder validation.TRUE(default) applies the built-in denylist of dangerous functions.FALSEdisables all checking. A named list withdeny_listand/orallow_listcharacter vectors supplies a custom check; when both are given, denied entries are removed from the allowlist.