- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- 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 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'flextable' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [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 ... [25s] OK
- checking Rd files ... [3s] OK
- checking Rd metadata ... 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] ERROR
Running examples in 'flextable-Ex.R' failed
The error most likely occurred in:
> ### 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 ... [54s] ERROR
Running 'testthat.R' [54s]
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.05.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 ... [2s] OK
- checking PDF version of manual ... [40s] OK
- checking HTML version of manual ... [31s] OK
- DONE
Status: 2 ERRORs