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).
The most recent version of
teal.reporter
implements theto_flextable()
function to print tables. This function drops all annotations (i.e. titles/footnotes) that have been added to the table in the case ofrtables
objects. In my opinion the best solution would be to update theto_flextable()
function inteal.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 asrtables
objects (no extra work should be needed).Originally posted by @edelarua in https://github.com/insightsengineering/teal.modules.clinical/issues/834#issuecomment-1734440055