Skip to content

Commit 5b6e9e2

Browse files
authored
Merge pull request #178 from Merck/release-1-0-4
CRAN 1.0.4 release
2 parents 047946d + a178123 commit 5b6e9e2

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
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.3
3+
Version: 1.0.4
44
Authors@R: c(
55
person("Yilong", "Zhang", email = "[email protected]", role = c("aut", "cre")),
66
person("Siruo", "Wang", role = "aut"),

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
# r2rtf 1.0.4 (2023-06-17)
2+
3+
## Bug fixes
4+
5+
* Page size of the first page is different from the other pages (#174).
6+
17
# r2rtf 1.0.3 (2023-05-26)
28

9+
## Bug fixes
10+
311
* Properly display cell height in HTML output (#66).
412
* Fix an issue when `group_by` and `page_by` are used together (#168).
513

tests/testthat/test-independent-testing-rtf_encode_table.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,18 @@ test_that("Test case when using subline_by, page_by, group_by simultaneously wit
332332
attr(ae_t3, "page")$page_title <- "first"
333333
ae_t3a <- rtf_encode_table(ae_t3)
334334

335-
tmp <- lapply(strsplit(ae_t3a$body, "\\page", fixed = TRUE)[[1]],
336-
function(x) grepl("subline", x)
335+
tmp <- lapply(
336+
strsplit(ae_t3a$body, "\\page", fixed = TRUE)[[1]],
337+
function(x) grepl("subline", x)
337338
)
338339
expect_true(tmp[[1]])
339340

340341
attr(ae_t3, "page")$page_title <- "last"
341342
ae_t3b <- rtf_encode_table(ae_t3)
342343

343-
tmp <- lapply(strsplit(ae_t3b$body, "\\page", fixed = TRUE)[[1]],
344-
function(x) grepl("subline", x)
344+
tmp <- lapply(
345+
strsplit(ae_t3b$body, "\\page", fixed = TRUE)[[1]],
346+
function(x) grepl("subline", x)
345347
)
346348
expect_true(tmp[[length(tmp)]])
347349
})

0 commit comments

Comments
 (0)