Releases: Merck/r2rtf
Releases · Merck/r2rtf
r2rtf 1.3.0
New features
- Add
write_docx()andwrite_html()to output encoded RTF to DOCX/HTML via LibreOffice (@elong0527, #281). - Add
\\pagenumber_hardcodingcontrol word for table-relative page numbering in multi-page tables (@wangben718, #283).
Bug fixes
- Remove trailing whitespace after
\\totalpageto avoid emitting extra spaces and support page-aware substitution (@elong0527, #280). strwidth()andpar()calls no longer leak a graphics device when no device is active, preventing unwantedRplots.pdfoutput (@nanxstats, #285).
Improvements
- Update vignette examples to avoid misleading footer/source labels (@wangben718, #286).
Maintenance
- Include
tests/testthat/_snaps/in the built package to satisfy testthat snapshot requirements and fixR CMD checkwith testthat >= 3.3.0 (@elong0527, #282).
r2rtf 1.2.0
New features
- Add internationalization (i18n) support with
use_i18nparameter inrtf_page()to enable SimSun font for Chinese character support in RTF documents (#256). - Add
text_hyphenationparameter tortf_title(),rtf_colheader(), andrtf_subline()functions to control text hyphenation in RTF output (#235).
Improvements
- Refactor font type table to use a data frame structure for better maintainability (#264).
r2rtf 1.1.4
Bug fixes
- Support setting text color properly when encoding figures into RTF (@elong0527, #252).
Improvements
- Safeguard code examples and tests against a rare situation where officer could miss its underlying dependency systemfonts (@nanxstats, #249).
r2rtf 1.1.3
Bug fixes
- Fix
unlist()usage inas_rtf_footnote()which could result in errors for downstream code under R >= 4.5.0 (@nanxstats, #245).
r2rtf 1.1.2
Improvements
- Fine-tune the symbol to ANSI and Unicode converter for faster, safer, and more robust conversion (thanks, @yihui, #217).
- Use code to generate the Unicode/LaTeX mapping table, to replace the previous
R/sysdata.rdasolution. Now the mapping table is directly accessible viar2rtf:::unicode_latex(thanks, @yihui, #218).
r2rtf 1.1.1
r2rtf 1.1.0
New features
- Add
r2rtf_rich_text()to allow inline formatting (@BrianLang, #184).
Improvements
- Use the native pipe in unit testing (#179).
r2rtf 1.0.4
Bug fixes
- Page size of the first page is different from the other pages (#174).