- using R Under development (unstable) (2026-01-16 r89305)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘crane/DESCRIPTION’ ... OK
- this is package ‘crane’ version ‘0.3.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘crane’ can be installed ... [12s/27s] OK
See the install log for details.
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [19s/39s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [66s/155s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [389s/473s] ERROR
Running ‘testthat.R’ [388s/472s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(crane)
Loading required package: gtsummary
>
> test_check("crane")
Starting 2 test processes.
Saving _problems/test-add_blank_rows-96.R
> test-tbl_shift.R: i Converting column "ANRIND" to a factor.
[ FAIL 1 | WARN 0 | SKIP 41 | PASS 76 ]
══ Skipped tests (41) ══════════════════════════════════════════════════════════
• On CRAN (41): 'test-add_blank_rows.R:73:1', 'test-add_blank_rows.R:99:1',
'test-add_difference_row.R:10:1', 'test-add_difference_row.R:52:1',
'test-add_hierarchical_count_row.R:1:1',
'test-add_hierarchical_count_row.R:37:1', 'test-modify_zero_recode.R:1:1',
'test-tbl_hierarchical_rate_and_count.R:1:1',
'test-tbl_hierarchical_rate_by_grade.R:1:1', 'test-tbl_listing.R:6:1',
'test-tbl_listing.R:12:1', 'test-tbl_listing.R:31:1',
'test-tbl_listing.R:42:1', 'test-tbl_listing.R:57:1',
'test-tbl_listing.R:70:1', 'test-tbl_listing.R:89:1',
'test-tbl_listing.R:98:1', 'test-tbl_roche_summary.R:14:1',
'test-tbl_roche_summary.R:85:1', 'test-tbl_shift.R:23:1',
'test-tbl_shift.R:53:1', 'test-tbl_shift.R:72:1', 'test-tbl_shift.R:89:1',
'test-tbl_shift.R:124:1', 'test-tbl_shift.R:159:1',
'test-tbl_survfit_quantiles.R:3:1', 'test-tbl_survfit_quantiles.R:53:1',
'test-tbl_survfit_quantiles.R:73:1', 'test-tbl_survfit_quantiles.R:109:1',
'test-tbl_baseline_chg.R:12:1', 'test-tbl_baseline_chg.R:42:1',
'test-tbl_baseline_chg.R:56:1', 'test-tbl_baseline_chg.R:73:1',
'test-tbl_baseline_chg.R:104:1', 'test-tbl_baseline_chg.R:155:1',
'test-tbl_baseline_chg.R:170:1', 'test-theme_gtsummary_roche.R:1:1',
'test-theme_gtsummary_roche.R:8:1', 'test-tbl_survfit_times.R:3:1',
'test-tbl_survfit_times.R:57:1', 'test-tbl_survfit_times.R:79:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-add_blank_rows.R:93:3'): add_blank_rows(row_numbers) error ───
Expected `dplyr::pull(out$table_body[, 1], trt)` to equal `c("Drug A", NA, "Drug B", NA, "Drug A")`.
Differences:
`attr(actual, 'label')` is a character vector ('Chemotherapy Treatment')
`attr(expected, 'label')` is absent
[ FAIL 1 | WARN 0 | SKIP 41 | PASS 76 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [9s/19s] OK
- checking HTML version of manual ... [5s/13s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR