- using R Under development (unstable) (2023-03-18 r84003)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
gcc-12 (Debian 12.2.0-14) 12.2.0
GNU Fortran (Debian 12.2.0-14) 12.2.0
- running under: Debian GNU/Linux bookworm/sid
- using session charset: UTF-8
- checking for file ‘gtreg/DESCRIPTION’ ... OK
- this is package ‘gtreg’ version ‘0.2.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 serialization versions ... OK
- checking whether package ‘gtreg’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/3s] OK
- checking loading without being on the library search path ... [1s/2s] 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 ... [10s/17s] OK
- checking Rd files ... [0s/1s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/6s] ERROR
Running examples in ‘gtreg-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tbl_listing
> ### Title: Data Listing Table
> ### Aliases: tbl_listing
>
> ### ** Examples
>
> library(dplyr, warn.conflicts = FALSE)
>
> tbl_listing_ex1 <-
+ head(df_adverse_events, n = 10) %>%
+ select(system_organ_class, adverse_event, grade, drug_attribution, patient_id) %>%
+ arrange(adverse_event, desc(grade)) %>%
+ tbl_listing(group_by = system_organ_class) %>%
+ bold_labels()
>
> set.seed(11234)
> tbl_listing_ex2 <-
+ df_patient_characteristics %>%
+ dplyr::slice_sample(n = 10) %>%
+ select(patient_id, status, discontinued, off_trt_ae) %>%
+ tbl_listing() %>%
+ as_gt() %>%
+ gt::opt_row_striping()
Error in vectbl_assign(x[[j]], i, recycled_value[[j]]) :
DLL requires the use of native symbols
Calls: %>% ... tbl_subassign_row -> withCallingHandlers -> vectbl_assign
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [141s/214s] ERROR
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [141s/213s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(gtreg)
Attaching package: 'gtreg'
The following object is masked from 'package:testthat':
matches
>
> test_check("gtreg")
x The `column=` argument is required.
i Run `show_header_names(x)` to list the column names and headers.
Variable 'soc' likely not unique in gtsummary table, and the cell(s) you wish
to display may not be accessible. This may occur when gtsummary tables with
repeated variable names are combined using `tbl_stack()`.
[ FAIL 5 | WARN 50 | SKIP 4 | PASS 73 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-style_xxx.R:67:3'): style_xxx works with tbl_ae family ─────────
`as_gt(t1, id = "t1_001")` threw an unexpected error.
Message: DLL requires the use of native symbols
Class: simpleError/error/condition
── Error ('test-style_xxx.R:68:3'): style_xxx works with tbl_ae family ─────────
`as_gt(t2, id = "t2_001")` threw an unexpected error.
Message: DLL requires the use of native symbols
Class: simpleError/error/condition
── Error ('test-style_xxx.R:69:3'): style_xxx works with tbl_ae family ─────────
`as_gt(t3, id = "t3_001")` threw an unexpected error.
Message: DLL requires the use of native symbols
Class: simpleError/error/condition
── Error ('test-style_xxx.R:110:3'): style_xxx works with tbl_reg_summary ──────
`as_gt(t4, id = "t4_001")` threw an unexpected error.
Message: DLL requires the use of native symbols
Class: simpleError/error/condition
── Error ('test-style_xxx.R:111:3'): style_xxx works with tbl_reg_summary ──────
`as_gt(t5, id = "t5_001")` threw an unexpected error.
Message: DLL requires the use of native symbols
Class: simpleError/error/condition
[ FAIL 5 | WARN 50 | SKIP 4 | PASS 73 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [1s/1s] OK
- checking PDF version of manual ... [5s/12s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs