- using R Under development (unstable) (2025-09-03 r88788)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (3+b2)
Debian flang-new version 19.1.7 (3+b2)
- 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 ... [3s/4s] 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/2s] 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/2s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [47s/56s] OK
- checking Rd files ... [2s/2s] 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 ... [9s/13s] ERROR
Running examples in ‘flextable-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: as_flextable.gam
> ### Title: Transform a 'gam' model into a flextable
> ### Aliases: as_flextable.gam
>
> ### ** Examples
>
> if (require("mgcv")) {
+ set.seed(2)
+
+ # Simulated data
+ dat <- gamSim(1, n = 400, dist = "normal", scale = 2)
+
+ # basic GAM model
+ b <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3), data = dat)
+
+ ft <- as_flextable(b)
+ ft
+ }
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.9-3. For overview type 'help("mgcv-package")'.
Gu & Wahba 4 term additive model
Error in ll(object) : could not find function "ll"
Calls: as_flextable ... as_flextable.gam -> glance_gam -> AIC -> AIC.default
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [63s/83s] ERROR
Running ‘testthat.R’ [62s/82s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
>
> test_check("flextable")
Loading required package: flextable
Attaching package: 'xtable'
The following object is masked from 'package:flextable':
align
This is mgcv 1.9-3. For overview type 'help("mgcv-package")'.
Gu & Wahba 4 term additive model
Loading required package: pdftools
Using poppler version 25.03.0
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 417 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• do_manual_msoffice_snapshot_testing is not TRUE (1): 'test-borders.R:3:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-as_flextable.R:86:3'): glm and lm ──────────────────────────────
Error in `ll(object)`: could not find function "ll"
Backtrace:
▆
1. ├─flextable::as_flextable(lmod) at test-as_flextable.R:86:3
2. ├─flextable:::as_flextable.lm(lmod)
3. │ ├─broom::glance(x)
4. │ └─broom:::glance.lm(x)
5. │ ├─base::with(...)
6. │ └─base::with.default(...)
7. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
8. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
9. │ └─tibble::tibble(...)
10. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
11. │ └─rlang::eval_tidy(xs[[j]], mask)
12. ├─stats::AIC(x)
13. └─stats:::AIC.default(x)
── Error ('test-as_flextable.R:479:3'): gam models ─────────────────────────────
Error in `ll(object)`: could not find function "ll"
Backtrace:
▆
1. ├─flextable::as_flextable(b) at test-as_flextable.R:479:3
2. └─flextable:::as_flextable.gam(b)
3. └─flextable:::glance_gam(x)
4. ├─stats::AIC(model)
5. └─stats:::AIC.default(model)
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 417 ]
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 ... [23s/27s] OK
- checking HTML version of manual ... [8s/14s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs