Skip to content

Commit

Permalink
Merge branch 'main' into 758_migrate_pdf_export@main
Browse files Browse the repository at this point in the history
  • Loading branch information
ayogasekaram committed Dec 5, 2023
2 parents 39a31ba + 0c39cc7 commit 645dd35
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,20 @@ jobs:
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
enable-staged-dependencies-check: false
junit-xml-comparison: false
sd-direction: upstream
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
additional-r-cmd-check-params: --as-cran
enforce-note-blocklist: true
note-blocklist: |
checking dependencies in R code .* NOTE
checking R code for possible problems .* NOTE
checking examples .* NOTE
checking Rd line widths .* NOTE
checking S3 generic/method consistency .* NOTE
checking Rd .usage sections .* NOTE
checking for unstated dependencies in vignettes .* NOTE
unit-test-report-brand: >-
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/rtables.png
coverage:
if: github.event_name == 'pull_request'
name: Coverage 📔
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rtables
Title: Reporting Tables
Version: 0.6.5.9019
Date: 2023-11-29
Version: 0.6.5.9020
Date: 2023-12-01
Authors@R: c(
person("Gabriel", "Becker", , "[email protected]", role = "aut",
comment = "Original creator of the package"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## rtables 0.6.5.9019
## rtables 0.6.5.9020
### New Features
* Removed `ref_group` reordering in column splits so not to change the order.
* Added `bold` argument to `as_html` to bold specified elements, and `header_sep_line`
Expand Down
2 changes: 1 addition & 1 deletion R/tt_export.R
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ handle_rdf_row <- function(rdfrow, maxlen) {
if (is.null(tree_children(clyt))) {
return(ret)
} else {
ret <- rbind(ret, lapply(tree_children(clyt), .get_formatted_colnames) %>% do.call(cbind, .))
ret <- rbind(ret, do.call(cbind, lapply(tree_children(clyt), .get_formatted_colnames)))
colnames(ret) <- NULL
rownames(ret) <- NULL
return(ret)
Expand Down
7 changes: 7 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ navbar:
href: articles/dev-guide/dg_debug_rtables.html
- text: Sparse notes on {rtables} internals
href: articles/dev-guide/dg_notes.html
reports:
text: Reports
menu:
- text: Coverage report
href: coverage-report/
- text: Unit test report
href: unit-test-report/

repo:
url:
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-exporters.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ test_that("path_enriched_df works for tables with a column that has all length 1
})

test_that("export_as_rtf works", {
testthat::skip_if_not_installed("r2rtf")
tbl <- tt_to_export()
tmpf <- tempfile(fileext = ".rtf")

Expand Down

0 comments on commit 645dd35

Please sign in to comment.