Skip to content

Commit dd39d09

Browse files
authored
Merge pull request #159 from Merck/news-and-version
Update news and bump version for 1.0.2
2 parents a03c729 + 979ca45 commit dd39d09

File tree

2 files changed

+117
-51
lines changed

2 files changed

+117
-51
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: r2rtf
22
Title: Easily Create Production-Ready Rich Text Format (RTF) Table and Figure
3-
Version: 1.0.1
3+
Version: 1.0.2
44
Authors@R: c(
55
person("Yilong", "Zhang", email = "[email protected]", role = c("aut", "cre")),
66
person("Siruo", "Wang", role = "aut"),
@@ -40,13 +40,13 @@ Suggests:
4040
emmeans,
4141
ggplot2,
4242
knitr,
43+
magrittr,
4344
officer,
44-
xml2,
4545
rmarkdown,
4646
stringi,
4747
testthat,
4848
tidyr,
49-
magrittr
49+
xml2
5050
Config/testthat/edition: 3
5151
Roxygen: list(markdown = TRUE)
5252
RoxygenNote: 7.2.3

NEWS.md

Lines changed: 114 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,149 @@
1+
# r2rtf 1.0.2 (2023-04-28)
2+
3+
## Bug fixes
4+
5+
* Display proper indentation for footnote and data source (#141).
6+
* Fix an issue when a column only contains missing value (#146).
7+
8+
## Improvements
9+
10+
* Improve grammar and style for the main vignette (@howardbaek, #144).
11+
* Add libreoffice 7.4 and 7.5 support (#156).
12+
* Add citation details (#155).
13+
114
# r2rtf 1.0.1 (2023-02-02)
215

3-
* New feature: enable vertical alignment (#136)
4-
* bug fix: enable libreoffice7.3 (#92)
16+
## New features
17+
18+
* Enable vertical alignment (#136).
19+
20+
## Improvements
21+
22+
* Add support for libreoffice 7.3 (#92).
523

624
# r2rtf 1.0.0 (2023-01-12)
725

8-
* New functions: `assemble_docx` and `assemble_rtf`.
9-
* Update copyright
10-
* bug fix: rtf_enode fails when data contains NA and fixed-width font is used (#118)
11-
* bug fix: avoid error when `cell_nrow=1` (#108, #109)
26+
## New features
27+
28+
* Add new functions: `assemble_docx()` and `assemble_rtf()`.
29+
30+
## Bug fixes
31+
32+
* `rtf_encode()` fails when data contains `NA` and fixed-width font is used (#118).
33+
* Avoid error when `cell_nrow = 1` (#108, #109).
34+
35+
## Improvements
36+
37+
* Update copyright text.
1238

1339
# r2rtf 0.3.5 (2022-05-17)
1440

15-
* bug fix: avoid warning message for matrix dimission in R4.2.0 (#101)
16-
* bug fix: vectorized text justification for `r2rtf::rtf_title`, `r2rtf::rtf_footnote`, etc (#98)
41+
## Bug fixes
42+
43+
* Avoid warning messages on matrix dimension in R >= 4.2.0 (#101).
44+
* Vectorized text justification for `rtf_title()`, `rtf_footnote()`, and other functions (#98).
1745

1846
# r2rtf 0.3.4 (2022-04-08)
1947

20-
* Update maintainer email
21-
* bug fix: utf8Tortf provide additional "-"
48+
## Bug fixes
49+
50+
* `utf8Tortf()` provides additional "-".
51+
52+
## Improvements
53+
54+
* Update maintainer email.
2255

2356
# r2rtf 0.3.3 (2022-03-07)
2457

25-
* New argument: add `use_color` argument in `rtf_page`
26-
* bug fix: convert to proper RTF code
27-
* bug fig:` rft_encode()` doesn't add footnote and source to all pages for `doc_type = "figure"` (#90)
58+
## Improvements
59+
60+
* `rtf_page()` now has a new argument `use_color`.
61+
62+
## Bug fixes
63+
64+
* Convert to proper RTF code.
65+
* `rft_encode()` does not add footnote and source to all pages for `doc_type = "figure"` (#90).
2866

2967
# r2rtf 0.3.2 (2021-12-07)
3068

31-
* New function: `rtf_read_figure` support `jpeg` and `emf` format to read figure (#65)
32-
* Improvement: avoid specific libreoffice version (#68)
33-
* Bug fix: avoid using `as.vector` for `data.frame` (#74)
34-
* Bug fix: proper alignment to transfer `html` (#61)
69+
## New features
70+
71+
* The new function `rtf_read_figure()` supports `jpeg` and `emf` formats for reading figures (#65).
72+
73+
## Bug fixes
74+
75+
* Avoid using `as.vector` for `data.frame` (#74).
76+
* Proper alignment to transfer `html` (#61).
77+
78+
## Improvements
79+
80+
* Avoid specific libreoffice version (#68).
3581

3682
# r2rtf 0.3.1 (2021-09-09)
3783

38-
* New argument `cell_vertical_alignment` in `rtf_xxx` function. (#49, #52)
39-
* New argument `verbose` in `rtf_encode_list` and `rtf_encode_table`. (#38)
40-
* Bug fix `unicode_latex` not found. (#50)
41-
* Bug fix vertical align column headers. (#49, #52)
42-
* Bug fix vectorize text formatting arguments in rtf_page_header and rtf_page_footer. (#47, #53)
43-
* Bug fix text_format issue with all value equal to "". (#40)
44-
* `r2rtf` needs to work properly with `group_by()`. (#36)
84+
## New features
85+
86+
* New argument `cell_vertical_alignment` in `rtf_*()` functions (#49, #52).
87+
* New argument `verbose` in `rtf_encode_list()` and `rtf_encode_table()` (#38).
88+
89+
## Bug fixes
90+
91+
* `unicode_latex` not found (#50).
92+
* Vertical align column headers (#49, #52).
93+
* Vectorize text formatting arguments in `rtf_page_header()` and `rtf_page_footer()` (#47, #53).
94+
* `text_format` issue with all value equal to `""` (#40).
95+
* r2rtf needs to work properly with `group_by()` (#36).
4596

4697
# r2rtf 0.3.0 (2021-06-01)
4798

48-
* Rename dataset with prefix `r2rtf` to avoid conflict of other namespace
49-
* Enable special place holder "-----" in `page_by` variable to suppress line displayed
50-
in `page_by` variable (ref Example 2 in `vignette/example-pageby-groupby`)
51-
* New experimental function `rtf_convert_format`.
52-
* New argument `pageby_row` in `rtf_body` to display first row instead of `page_by` variable when `pageby_row = "first_row"`
53-
* New argument `subline_by` in `rtf_body` to display subline by an variable.
54-
* New argument `text_indent_reference` to allow user to control reference of indent from page margin or table border (#12)
55-
* New internal function `rtf_subset` to subset an rtf table object.
56-
* Bug fix `group_by` can be used when `page_by=NULL`.
57-
* Bug fix `page_by` can not sort format style in `rtf_body`
58-
* Bug fix ensure consistent font size with blank cell (#14)
99+
## New features
100+
101+
* New experimental internal function `rtf_convert_format()`.
102+
* New argument `pageby_row` in `rtf_body()` to display first row instead of
103+
`page_by` variable when `pageby_row = "first_row"`.
104+
* New argument `subline_by` in `rtf_body` to display subline by an variable.
105+
* New argument `text_indent_reference` to allow user to control reference of
106+
indent from page margin or table border (#12).
107+
* New internal function `rtf_subset()` to subset an RTF table object.
108+
109+
## Bug fixes
110+
111+
* `group_by` can be used when `page_by = NULL`.
112+
* `page_by` cannot sort format style in `rtf_body()`.
113+
* Ensure consistent font size with blank cell (#14).
114+
115+
## Improvements
116+
117+
* Rename datasets with prefix `r2rtf_` to avoid conflicts with other namespaces.
118+
* Enable special place holder `"-----"` in `page_by` variable to suppress line
119+
displayed in the `page_by` variable. See example 2 in
120+
`vignettes/example-pageby-groupby.Rmd`.
59121

60122
# r2rtf 0.2.0 (2020-12-04)
61123

62-
* Add `rtf_subline`, `rtf_page_header`, `rtf_page_footer`.
63-
* Add `rtf_page` to set page related attributes.
64-
* Introduce `text_convert` argument to allow fixed string.
65-
* Add `as_table` argument in `rtf_footnote` and `rtf_source` to allow footnote
66-
and datasource inside or outside of a table.
67-
* Refactor `pageby` feature to enable `group_by` feature.
68-
Add `vignette\example-pageby.Rmd` to illustrate new pageby features.
69-
* Define `obj_rtf_border` and `obj_rtf_text` objects to standardize
124+
## New features
125+
126+
* Add `rtf_subline()`, `rtf_page_header()`, and `rtf_page_footer()`.
127+
* Add `rtf_page()` to set page related attributes.
128+
* Introduce argument `text_convert` to allow fixed string.
129+
* Add argument `as_table` in `rtf_footnote()` and `rtf_source()` to allow
130+
footnote and data source inside or outside of a table.
131+
* Refactor the `pageby` feature to enable the `group_by` feature.
132+
Add `vignettes/example-pageby.Rmd` to illustrate new `pageby` features.
133+
* Define `obj_rtf_border` and `obj_rtf_text` objects to standardize
70134
border and text attributes.
71-
* Add example ADaM datasets.
72-
* Add validation tracker in `\inst` folder and testing cases in `\test`.
73135

136+
## Improvements
137+
138+
* Add example ADaM datasets.
139+
* Add validation tracker in `inst/` and test cases in `tests/`.
74140

75141
# r2rtf 0.1.1 (2020-04-03)
76142

77-
* Standardize input from `gt_tbl` to `tbl`
78-
* Resolving UTF-8 encoding
143+
* Standardize input from `gt_tbl` to `tbl`.
144+
* Resolve UTF-8 encoding.
79145

80146
# r2rtf 0.1.0 (Unpublished)
81147

82148
* Added a `NEWS.md` file to track changes to the package.
83-
* Initial Version
149+
* Initial version.

0 commit comments

Comments
 (0)