teal.code is an R library providing tools to store code and an execution environment associated with it. The features include:
- an object
qenvfor storing code and an execution environment which integrates well with
shiny reactivesfor use in
shinyapplications whose outputs require reproducibility (i.e. the code used to generate them)
- ability to chain and join
qenvobjects together to provide fine-grained control over executed code
- automatic error and warning handling for executed code
teal.code also ships a
shiny module that helps inspect the stored code as well as messages, warnings and error messages resulting from evaluation via
shiny web application.
# stable versions install.packages('teal.code') # install.packages("pak") pak::pak("insightsengineering/teal.code@*release")
Alternatively, you might want to use the development version available on r-universe.
To understand how to use this package, please refer to the Getting Started article, which provides multiple examples of code implementation.
Below is the showcase of the example usage
qenv_2[["y"]] #>  10
If you encounter a bug or you have a feature request - please file an issue. For questions, discussions and staying up to date, please use the “teal” channel in the
pharmaverse slack workspace.