tdata2env: Function to convert a 'tdata' object to an 'environment'

View source: R/tdata.R

tdata2envR Documentation

Function to convert a tdata object to an environment

Description

Any reactive expressions inside tdata are evaluated first.

Usage

tdata2env(data)

Arguments

data

(tdata) object

Value

An environment.

Examples


data <- new_tdata(
  data = list(iris = iris, mtcars = reactive(mtcars)),
  code = "iris <- iris
    mtcars = mtcars"
)

my_env <- isolate(tdata2env(data))


teal documentation built on May 29, 2024, 10:11 a.m.