Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Reproducibility Mechanisms and Code Display in Report Output #280

Open
Tracked by #44
donyunardi opened this issue Jun 27, 2024 · 0 comments
Open
Tracked by #44

Comments

@donyunardi
Copy link
Contributor

donyunardi commented Jun 27, 2024

Improve Reproducibility Mechanism

When a user utilizes the teal.reporter feature in their teal app and clicks the Download Report button from the Reporter previewer module, they will receive:

  • The output file (PDF, HTML, PPT, Word)
  • PNG (for plots) or RDS (for table) file
  • Report.json file
  • Rmd file

The Rmd file that the user receives will not generate new output (plot or table) if they change the R code section in the Rmd because:

  1. The code is not re-evaluated when the Rmd is knitted, as the R code chunk option is set to eval=FALSE.
  2. The plots or table image is embedded in the Rmd file using knitr::include_graphics or readRDS.

This means the Rmd file is static and the plots or tables are not reproducible. To make the Rmd reproducible, new output should be generated when it's knitted. Outputs should not be embedded (as in step 2) in the Rmd file.

Improve Code Display

We also want to improve how the code is displayed in the output report (and possibly in Rmd) because it is currently shown as one long line of code, regardless of the programming steps (e.g., data processing, filtering, plotting, etc.).

Users will have more clarity and readability if we can provide sections for the code in the report.

Definition of Done

  • Achieve true reproducible Rmd file, means that knitting the Rmd will create new outputs.
  • Better code readability in the output report and Rmd, allowing users to distinguish between sections of code for data processing, filtering, etc.

Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant