Call tableau_setting() from an extension's server and config_server functions to read settings that were previously set via update_tableau_settings_async().

tableau_setting(
  name,
  default = NULL,
  session = shiny::getDefaultReactiveDomain()
)

tableau_settings_all(session = shiny::getDefaultReactiveDomain())

Arguments

name

The name of a setting to retrieve.

default

The value to return if the requested setting has not been set.

session

The Shiny session object. (You should probably just use the default.)

Value

For tableau_setting(), an object that was previously saved via update_tableau_settings_async, or the default value. For tableau_settings_all(), a named list containing all of the settings.

Details

A typical extension will call update_tableau_settings_async() from config_server to write settings, and tableau_setting() from server to read settings.

Note that both tableau_setting() and tableau_settings_all() are reactive reads; in order to call these functions you must be inside a reactive context (i.e. reactive expression, reactive observer, output render expression, or isolate()), and future updates to a setting that was read will cause reactive invalidation.