insightsengineering / teal.reporter

Create and preview reports with Shiny modules
https://insightsengineering.github.io/teal.reporter/
Other
8 stars 8 forks source link

[Feature Request]: User-defined templates for reports #271

Open chlebowa opened 1 month ago

chlebowa commented 1 month ago

Feature description

Rmarkdown allows using template documents to style docx and pptx files.

https://bookdown.org/yihui/rmarkdown/word-document.html https://bookdown.org/yihui/rmarkdown-cookbook/word-template.html https://bookdown.org/yihui/rmarkdown/powerpoint-presentation.html#ppt-templates

Would it be possible for teal.reporter to 1) accept the user's template file? 2) allow the user to choose a file from a selection provided by the app developer and stored on the deployment server?

Both could work by presenting a fileInput conditional on the document type being "word" or "powerpoint"

image

This would require (among other things) allowing reference_docx in rmd_yaml_args in reporter_previewer_srv and download_report_button_srv.

Possibly related to https://github.com/insightsengineering/teal.reporter/issues/15

Code of Conduct

Contribution Guidelines

Security Policy

donyunardi commented 1 month ago

The concept is plausible. @kumamiao what do you think?

kumamiao commented 4 weeks ago

Sorry just saw this, I like the idea and think it would improve user experience.