insightsengineering / teal.reporter

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

Enable listings support & table annotations in `to_flextable` #217

Closed edelarua closed 9 months ago

edelarua commented 9 months ago

The most recent version of teal.reporter implements the to_flextable() function to print tables. This function drops all annotations (i.e. titles/footnotes) that have been added to the table in the case of rtables objects. In my opinion the best solution would be to update the to_flextable() function in teal.reporter as follows:

1) Update the function to print table titles/footnotes for supported formats. 2) Add listings_df as a supported format in the function since listings also have a matrix print form and can be handled the same as rtables objects (no extra work should be needed).

Originally posted by @edelarua in https://github.com/insightsengineering/teal.modules.clinical/issues/834#issuecomment-1734440055