| reactive-primitives {tabler} | R Documentation |
Reactive Value
Description
A single mutable reactive value. Call with no argument to read (tracks the caller as a dependent); call with one argument to write (invalidates all current dependents).
Usage
reactive_val(value = NULL)
reactive_values(...)
reactive_values_to_list(x, all.names = FALSE)
reactive(expr)
req(..., cancelOutput = FALSE)
isolate(expr)
observe(expr)
observe_event(event_expr, handler_expr, ignore_init = TRUE)
event_reactive(event_expr, value_expr, ignore_null = TRUE, ignore_init = TRUE)
bind_event(..., ignore_null = TRUE, ignore_init = TRUE)
tabler_options(cache)
bind_cache(x, ...)
sync_url(session, exclude = character(0L))
Arguments
value |
Initial value. |
... |
Initial name = value pairs.
|
x |
A reactive_values() object.
|
all.names |
Include names starting with a dot (default FALSE).
|
expr |
Expression (use { } for multi-line).
|
cancelOutput |
Ignored (kept for signature compatibility with Shiny). |
event_expr |
Reactive expression whose change triggers the handler. |
handler_expr |
Expression to run when the event fires. |
ignore_init |
If TRUE (default), skip the first evaluation.
|
value_expr |
Expression to evaluate (and cache) when the event fires. |
ignore_null |
If TRUE (default), do not (re)compute while
event_expr evaluates to NULL.
|
cache |
A tinycache cache object (e.g.
tinycache::dcache(dir = "/path/to/cache") or
tinycache::mcache()) used to store bind_cache
values. If never set, an in-memory tinycache::mcache() is
created and used automatically - which (like a plain
reactive) does not survive an R restart. Pass a
dcache() object to persist values across app restarts and
sessions.
|
session |
The session object passed by tabler_app
to the server function.
|
exclude |
Character vector of input IDs to omit from the URL. Action buttons are always omitted regardless of this setting. |
Value
A function that acts as getter/setter.