insightsengineering / teal.reporter

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

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

Open chlebowa opened 6 months ago

chlebowa commented 6 months 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 6 months ago

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

kumamiao commented 5 months ago

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