Skip to contents

[Stable]

Universal function to pass data to teal application.

Usage

teal_data(
  ...,
  join_keys = teal.data::join_keys(),
  code = character(0),
  check = FALSE
)

Arguments

...

any number of objects (presumably data objects) provided as name = value pairs.

join_keys

(join_keys) object or a single (join_key_set) object.

(optional) object with dataset column relationships used for joining. If empty then no joins between pairs of objects.

code

(character, language) optional code to reproduce the datasets provided in .... Note this code is not executed and the teal_data may not be reproducible

check

(logical) reproducibility check - whether to perform a check that the pre-processing code included in the object definitions actually produces those objects. If check is true and preprocessing code is empty an error will be thrown.

Value

A teal_data object.

Examples

teal_data(x1 = iris, x2 = mtcars)
#> ✖ unverified teal_data object
#> <environment: 0x55f8ff714b88> [L]
#> Parent: <environment: devtools_shims>
#> Bindings:
#>  x1: <df[,5]> [L]
#>  x2: <df[,11]> [L]