This module manages the data
argument for srv_teal
. The teal
framework uses teal.data::teal_data()
,
which can be provided in various ways:
Directly as a
teal.data::teal_data()
object. This will automatically convert it into areactive
teal_data
.As a
reactive
object that returns ateal.data::teal_data()
object.
Value
A reactive
object that returns:
Output of the data
. If data
fails then returned error is handled (after tryCatch()
) so that
rest of the application can respond to this respectively.
Details
Reactive teal_data
:
The data in the application can be reactively updated, prompting srv_teal()
to rebuild the
content accordingly. There are two methods for creating interactive teal_data
:
Using a
reactive
object provided from outside theteal
application. In this scenario, reactivity is controlled by an external module, andsrv_teal
responds to changes.Using
teal_data_module()
, which is embedded within theteal
application, allowing data to be resubmitted by the user as needed.
Since the server of teal_data_module()
must return a reactive
teal_data
object, both
methods (1 and 2) produce the same reactive behavior within a teal
application. The distinction
lies in data control: the first method involves external control, while the second method
involves control from a custom module within the app.
For more details, see module_teal_data
.