CRAN Package Check Results for Package rtables

Last updated on 2023-12-10 18:52:23 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.6.3 28.41 670.75 699.16 ERROR
r-devel-linux-x86_64-debian-gcc 0.6.6 24.36 537.50 561.86 OK
r-devel-linux-x86_64-fedora-clang 0.6.6 618.54 NOTE
r-devel-linux-x86_64-fedora-gcc 0.6.6 947.65 OK
r-devel-windows-x86_64 0.6.6 26.00 492.00 518.00 NOTE
r-patched-linux-x86_64 0.6.3 35.73 646.08 681.81 OK
r-release-linux-x86_64 0.6.6 31.61 713.75 745.36 OK
r-release-macos-arm64 0.6.6 235.00 NOTE
r-release-macos-x86_64 0.6.6 565.00 NOTE
r-release-windows-x86_64 0.6.6 36.00 466.00 502.00 NOTE
r-oldrel-macos-arm64 0.6.6 221.00 NOTE
r-oldrel-macos-x86_64 0.6.3 236.00 NOTE
r-oldrel-windows-x86_64 0.6.3 37.00 618.00 655.00 NOTE

Check Details

Version: 0.6.3
Check: R code for possible problems
Result: NOTE export_as_pdf: no visible global function definition for ‘font_lcpi’ Undefined global functions or variables: font_lcpi Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.6.3
Check: Rd files
Result: NOTE checkRd: (-1) list_wrap.Rd:30: Lost braces 30 | anything else {notably including \code{x}} are passed only the relevant | ^ Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.6.3
Check: tests
Result: ERROR Running ‘testthat.R’ [265s/307s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > test_check("rtables", reporter = "check") Loading required package: rtables Loading required package: formatters Attaching package: 'formatters' The following object is masked from 'package:base': %||% Loading required package: magrittr Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Attaching package: 'rtables' The following object is masked from 'package:formatters': export_as_pdf Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union [ FAIL 6 | WARN 0 | SKIP 0 | PASS 1375 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-exporters.R:137:5'): export_as_pdf works ─────────────────────── Error in `font_lcpi(font_family, font_size, cur_gpar$lineheight)`: could not find function "font_lcpi" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-exporters.R:137:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rtables::export_as_pdf(...) ── Failure ('test-pagination.R:371:5'): Pagination works with non-default min_siblings ── `paginate_table(tt, lpp = 3, min_siblings = 1)` threw an error with unexpected message. Expected match: "Unable to find any valid pagination between 1 and 1" Actual message: "Unable to find any valid pagination split between rows 1 and 1. \nInserted cpp (column-space, content per page) : 1\nNeed-to-repeat-in-each-page space (key values): 0\nRemaining space: 1\nCurrent space needed (with padding): 1" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-pagination.R:371:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rtables::paginate_table(tt, lpp = 3, min_siblings = 1) 7. └─formatters::paginate_indices(...) 8. └─formatters::pag_indices_inner(...) 9. └─formatters:::find_pag(...) 10. └─formatters:::find_pag(...) ── Failure ('test-printing.R:149:5'): newline in column names and possibly cell values work ── matform2$strings[1:4, 1, drop = TRUE] not identical to c("Ethnicity", " Factor2", "", ""). 4/4 mismatches x[1]: "" y[1]: "Ethnicity" x[2]: "" y[2]: " Factor2" x[3]: "Ethnicity" y[3]: "" x[4]: " Factor2" y[4]: "" ── Failure ('test-printing.R:419:5'): Cell and column label wrapping works in printing ── splitted_res[1:5] not identical to `expected`. 2/5 mismatches x[4]: " name " y[4]: " name to " x[5]: " to be " y[5]: " be " ── Failure ('test-printing.R:490:5'): row label indentation is kept even if there are newline characters ── `res_a <- toString(mf_a, widths = c(15, 12, 12))` threw an error with unexpected message. Expected match: "Inserted width\\(s\\) for column\\(s\\) 1 is\\(are\\) not wide enough for the desired indentation." Actual message: "Inserted width for row label column is not wide enough. We found the following rows that do not have at least indentation * ind_size + 1 characters to allow text to be shown after indentation: 5 7 10 12 15 17" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-printing.R:490:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─base::toString(mf_a, widths = c(15, 12, 12)) 7. └─formatters::toString(mf_a, widths = c(15, 12, 12)) 8. └─formatters (local) .local(x, ...) 9. └─formatters:::do_cell_fnotes_wrap(...) 10. └─formatters:::.check_indentation(...) ── Error ('test-printing.R:492:5'): row label indentation is kept even if there are newline characters ── Error in `.check_indentation(mat, row_col_width = cell_widths_mat[, 1, drop = TRUE])`: Inserted width for row label column is not wide enough. We found the following rows that do not have at least indentation * ind_size + 1 characters to allow text to be shown after indentation: 5 7 10 12 15 17 Backtrace: ▆ 1. ├─base::toString(mf_a, widths = c(16, 12, 12)) at test-printing.R:492:5 2. └─formatters::toString(mf_a, widths = c(16, 12, 12)) 3. └─formatters (local) .local(x, ...) 4. └─formatters:::do_cell_fnotes_wrap(...) 5. └─formatters:::.check_indentation(...) [ FAIL 6 | WARN 0 | SKIP 0 | PASS 1375 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.6.6
Check: installed package size
Result: NOTE installed size is 5.4Mb sub-directories of 1Mb or more: R 1.4Mb doc 1.4Mb help 2.4Mb Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64

Version: 0.6.3
Check: installed package size
Result: NOTE installed size is 7.3Mb sub-directories of 1Mb or more: R 1.3Mb bootstrap 1.6Mb doc 1.3Mb help 2.8Mb Flavors: r-oldrel-macos-x86_64, r-oldrel-windows-x86_64