Skip to contents

Reproducibility is an important feature when it comes to data analysis for the following reasons:

  • Enables users to reproduce the outputs at any moment in a simple R console outside of a reactive shiny app.
  • Provides transparency where it helps users and others understand what happened during the analysis.

This is where the qenv object of theteal.code package comes into play. It provides a mechanism to develop reproducible shiny/teal modules. The teal.widgets package complements the chunks concept by providing a verbatim_popup widget which can be used to display the reproducible code via a button inside shiny/teal modules.

Note that there is a public shinymeta R package from RStudio that offers similar functionality. However, currently, shinymeta can not be easily integrated into teal modules and hence we recommend using qenv for teal based apps.

For further details see the qenv vignette.

Note: the older method of handling reproducibility, chunks, have now been deprecated and qenv should be used instead.