Combined getter/setter for ggpaintr's global settings, modeled after base
base::options(). Calling with no arguments returns all current settings
as a named list. Passing one or more named logical arguments sets those
settings and invisibly returns the previous values, suitable for the
do.call(ptr_options, old) round-trip pattern used by
withr::with_options() and on.exit().
Value
When called with no arguments, a named list of all current setting values. When called with named arguments, the previous values of the updated settings, returned invisibly.
Available settings
verboseLogical. When
TRUE, ggpaintr emits informative messages such as "Layer foo() removed (no arguments provided)." DefaultFALSE— these messages are intended for debugging the formula pipeline and are off by default. Underlying option:options(ggpaintr.verbose = ...).gate_drawLogical. When
TRUE(the default), the rendered plot updates only when the user clicks the "Update plot" button — every placeholder change is batched until the click. WhenFALSE, the button is omitted from the UI and the plot re-renders reactively on every placeholder change (live mode). Read once when the app is built, so set it before callingptr_app()/ptr_ui(). Underlying option:options(ggpaintr.gate_draw = ...).suppress_warningsLogical. When
TRUE, R warnings emitted while the plot is drawn (e.g.loessfit warnings such as "all data on boundary of neighborhood" or "Failed to fit group N") are silenced rather than printed to the console. DefaultFALSE— warnings surface as usual. Only the plot-drawing step is wrapped; errors still propagate to the inline error pane. Read once when the app is built, so set it before callingptr_app()/ptr_ui(). Underlying option:options(ggpaintr.suppress_warnings = ...).
