r2rtf
Easily Create Production-Ready Rich Text Format (RTF) Table and Figure
The clinical-report table engine learned Chinese, then learned to leave RTF entirely
◆Recent moves
- 7mo ago
DOCX and HTML output become exported functions
Exports write_docx() and write_html(), which run encoded RTF through LibreOffice — the same conversion the package has supported since 1.1.1 and shipped as vignette artifacts, now available as functions. Also adds a \pagenumber_hardcoding control word for table-relative page numbering in multi-page tables, and stops strwidth()/par() leaking a graphics device and emitting a stray Rplots.pdf.
View source ↗ - 11mo ago
Chinese character support arrives via an i18n font path
⚡ SPARKAdds internationalization through a use_i18n parameter on rtf_page() that enables SimSun for Chinese characters, plus text_hyphenation control on titles, column headers and sublines. Until this release the package could compose a table for a submission only if the text was Latin-script, which bounded it to one set of regulators.
View source ↗ - 1y ago
Text colour fixed for figures encoded into RTF
Fixes text colour when figures are encoded into RTF, and guards examples and tests against officer losing its systemfonts dependency. Small, but colour in embedded figures is visible in the delivered artifact.
View source ↗ - 1y ago
Footnote handling fixed for R 4.5.0
Corrects unlist() usage in as_rtf_footnote() that would have errored for downstream code under R 4.5.0. Forward-compatibility maintenance ahead of the R release.
View source ↗ - 1y ago
Unicode converter rebuilt and mapping table made inspectable
Rebuilds the symbol-to-ANSI/Unicode converter for speed and robustness, and generates the Unicode/LaTeX mapping table from code instead of shipping it as an opaque sysdata.rda — the table is now inspectable at r2rtf:::unicode_latex. Groundwork that the i18n work in 1.2.0 sits on top of.
View source ↗ - 2y ago
UTF-8 conversion fix and LibreOffice 7.6 support
Fixes conversion of UTF-8 code points at or above 128 and adds LibreOffice 7.6 support with clearer error messages. Both are early moves in the two threads that later define this window — character handling and the conversion path out of RTF.
View source ↗