- using R Under development (unstable) (2025-12-21 r89216)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘flextable/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘flextable’ version ‘0.9.10’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] OK
- 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 ‘flextable’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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 ... [28s/34s] OK
- checking Rd files ... [1s/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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [8s/9s] ERROR
Running examples in ‘flextable-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: as_flextable.kmeans
> ### Title: Transform a 'kmeans' object into a flextable
> ### Aliases: as_flextable.kmeans
>
> ### ** Examples
>
> if (require("stats")) {
+ cl <- kmeans(scale(mtcars[1:7]), 5)
+ ft <- as_flextable(cl)
+ ft
+ }
Error in `[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, :
attempt access index 4/4 in VECTOR_ELT
Calls: as_flextable ... as_flextable.kmeans -> tabulator -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [31s/37s] ERROR
Running ‘testthat.R’ [31s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
>
> test_check("flextable")
Loading required package: flextable
Saving _problems/test-as_flextable-140.R
Saving _problems/test-as_flextable-152.R
Saving _problems/test-as_flextable-343.R
Attaching package: 'xtable'
The following object is masked from 'package:flextable':
align
This is mgcv 1.9-4. For overview type '?mgcv'.
Gu & Wahba 4 term additive model
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
Loading required package: pdftools
Using poppler version 25.03.0
Saving _problems/test-gen_grob-15.R
Saving _problems/test-gen_grob-16.R
Saving _problems/test-gen_grob-32.R
Saving _problems/test-gen_grob-77.R
Saving _problems/test-gen_grob-117.R
Saving _problems/test-images-109.R
Saving _problems/test-latex-5.R
Saving _problems/test-latex-17.R
Saving _problems/test-proc-freq-65.R
Saving _problems/test-proc-freq-70.R
Saving _problems/test-proc-freq-90.R
[ FAIL 14 | WARN 0 | SKIP 1 | PASS 364 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• do_manual_msoffice_snapshot_testing is not TRUE (1): 'test-borders.R:3:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-as_flextable.R:140:3'): kmeans works ───────────────────────────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─flextable::as_flextable(cl) at test-as_flextable.R:140:3
2. └─flextable:::as_flextable.kmeans(cl)
3. └─flextable::tabulator(...)
4. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-as_flextable.R:152:3'): partitioning around medoids works ──────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─flextable::as_flextable(cl) at test-as_flextable.R:152:3
2. └─flextable:::as_flextable.pam(cl)
3. └─flextable::tabulator(...)
4. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-as_flextable.R:338:3'): labelled data ──────────────────────────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::proc_freq(...) at test-as_flextable.R:338:3
2. └─flextable::tabulator(...)
3. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
4. └─data.table:::`[.data.table`(...)
── Failure ('test-gen_grob.R:15:3'): png is created ────────────────────────────
Expected `file.exists(file)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-gen_grob.R:16:3'): png is created ────────────────────────────
Expected `file.info(file)$size` > 20000.
Actual comparison: NA <= 20000.0
── Error ('test-gen_grob.R:32:3'): merged borders ──────────────────────────────
Error in ``[.data.table`(grid_data, , `:=`("cell_width", safe_stat(.SD$col_width, FUN = sum, NA_value = NA_real_)), by = "rowspan_group")`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::gen_grob(ft) at test-gen_grob.R:32:3
2. └─flextable:::get_grid_data(x, autowidths, wrapping)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-gen_grob.R:77:3'): text wrapping ───────────────────────────────
Error in ``[.data.table`(grid_data, , `:=`("cell_width", safe_stat(.SD$col_width, FUN = sum, NA_value = NA_real_)), by = "rowspan_group")`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::gen_grob(ft, fit = "fixed") at test-gen_grob.R:77:3
2. └─flextable:::get_grid_data(x, autowidths, wrapping)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-gen_grob.R:117:3'): grid with raster ───────────────────────────
Error in ``[.data.table`(grid_data, , `:=`("cell_width", safe_stat(.SD$col_width, FUN = sum, NA_value = NA_real_)), by = "rowspan_group")`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::gen_grob(ft) at test-gen_grob.R:117:3
2. └─flextable:::get_grid_data(x, autowidths, wrapping)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-images.R:109:3'): multiple images ──────────────────────────────
Error in ``[.data.table`(grid_data, , `:=`("cell_width", safe_stat(.SD$col_width, FUN = sum, NA_value = NA_real_)), by = "rowspan_group")`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::gen_grob(ft) at test-images.R:109:3
2. └─flextable:::get_grid_data(x, autowidths, wrapping)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-latex.R:5:3'): white spaces are protected ──────────────────────
Error in ``[.data.table`(properties_df, , `:=`(c("vspan_id"), list(rleid(cumsum(.SD$colspan)))), by = c(".part", ".col_id"))`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable:::gen_raw_latex(ft) at test-latex.R:5:3
2. └─flextable:::latex_gridlines(properties_df)
3. └─flextable:::fortify_latex_borders(properties_df)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-latex.R:17:3'): fonts are defined in latex ─────────────────────
Error in ``[.data.table`(properties_df, , `:=`(c("vspan_id"), list(rleid(cumsum(.SD$colspan)))), by = c(".part", ".col_id"))`: attempt access index 14/14 in VECTOR_ELT
Backtrace:
▆
1. └─flextable:::gen_raw_latex(ft, quarto = FALSE) at test-latex.R:17:3
2. └─flextable:::latex_gridlines(properties_df)
3. └─flextable:::fortify_latex_borders(properties_df)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-proc-freq.R:65:3'): proc_freq executes without errors ──────────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::proc_freq(dummy_df, "values", "groups") at test-proc-freq.R:65:3
2. └─flextable::tabulator(...)
3. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-proc-freq.R:70:3'): proc_freq content ──────────────────────────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::proc_freq(dat, row = "o", col = "p") at test-proc-freq.R:70:3
2. └─flextable::tabulator(...)
3. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-proc-freq.R:87:3'): proc_freq content no count ─────────────────
Error in ``[.data.table`(as.data.table(x), , `:=`(c("cts"), .N), by = c(columns, rows))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─flextable::proc_freq(dat, row = "o", col = "p", include.table_count = FALSE) at test-proc-freq.R:87:3
2. └─flextable::tabulator(...)
3. ├─as.data.table(x)[, `:=`(c("cts"), .N), by = c(columns, rows)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 14 | WARN 0 | SKIP 1 | PASS 364 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/1s] OK
- checking PDF version of manual ... [13s/18s] OK
- checking HTML version of manual ... [11s/15s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs