- using R Under development (unstable) (2025-12-18 r89199)
- 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 ‘insight/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘insight’ version ‘1.4.4’
- 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 whether package ‘insight’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [54s/64s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [11s/13s] ERROR
Running examples in ‘insight-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_datagrid.emmGrid
> ### Title: Extract a reference grid from objects created by '{emmeans}' and
> ### '{marginaleffects}'
> ### Aliases: get_datagrid.emmGrid
>
> ### ** Examples
>
> data("mtcars")
> mtcars$cyl <- factor(mtcars$cyl)
>
> mod <- glm(am ~ cyl + hp + wt,
+ family = binomial("logit"),
+ data = mtcars
+ )
>
> ## Don't show:
> if (insight::check_if_installed("emmeans", quietly = TRUE)) withAutoprint({ # examplesIf
+ ## End(Don't show)
+ em1 <- emmeans::emmeans(mod, ~ cyl + hp, at = list(hp = c(100, 150)))
+ get_datagrid(em1)
+
+ contr1 <- emmeans::contrast(em1, method = "consec", by = "hp")
+ get_datagrid(contr1)
+
+ eml1 <- emmeans::emmeans(mod, pairwise ~ cyl | hp, at = list(hp = c(100, 150)))
+ get_datagrid(eml1) # not a "true" grid
+ ## Don't show:
+ }) # examplesIf
> em1 <- emmeans::emmeans(mod, ~cyl + hp, at = list(hp = c(100, 150)))
> get_datagrid(em1)
cyl hp
1 4 100
2 6 100
3 8 100
4 4 150
5 6 150
6 8 150
> contr1 <- emmeans::contrast(em1, method = "consec", by = "hp")
> get_datagrid(contr1)
contrast hp
1 cyl6 - cyl4 100
2 cyl8 - cyl6 100
3 cyl6 - cyl4 150
4 cyl8 - cyl6 150
> eml1 <- emmeans::emmeans(mod, pairwise ~ cyl | hp, at = list(hp = c(100,
+ 150)))
> get_datagrid(eml1)
hp cyl contrast
1 100 4 <NA>
2 100 6 <NA>
3 100 8 <NA>
4 150 4 <NA>
5 150 6 <NA>
6 150 8 <NA>
7 100 <NA> cyl4 - cyl6
8 100 <NA> cyl4 - cyl8
9 100 <NA> cyl6 - cyl8
10 150 <NA> cyl4 - cyl6
11 150 <NA> cyl4 - cyl8
12 150 <NA> cyl6 - cyl8
> ## End(Don't show)
> ## Don't show:
> if (insight::check_if_installed("marginaleffects", quietly = TRUE, minimum_version = "0.29.0")) withAutoprint({ # examplesIf
+ ## End(Don't show)
+ mfx1 <- marginaleffects::slopes(mod, variables = "hp")
+ get_datagrid(mfx1) # not a "true" grid
+
+ mfx2 <- marginaleffects::slopes(mod, variables = c("hp", "wt"), by = "am")
+ get_datagrid(mfx2)
+
+ contr2 <- marginaleffects::avg_comparisons(mod)
+ get_datagrid(contr2) # not a "true" grid
+ ## Don't show:
+ }) # examplesIf
> mfx1 <- marginaleffects::slopes(mod, variables = "hp")
Error in `[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp) :
attempt access index 19/19 in VECTOR_ELT
Calls: withAutoprint ... <Anonymous> -> do.call -> get_comparisons -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [206s/103s] ERROR
Running ‘testthat.R’ [206s/102s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(insight)
> test_check("insight")
Starting 2 test processes.
> test-find_transformation.R: boundary (singular) fit: see help('isSingular')
> test-gamlss.R: GAMLSS-RS iteration 1: Global Deviance = 365.2328
> test-gamlss.R: GAMLSS-RS iteration 2: Global Deviance = 365.1292
> test-gamlss.R: GAMLSS-RS iteration 3: Global Deviance = 365.1269
> test-gamlss.R: GAMLSS-RS iteration 4: Global Deviance = 365.1268
> test-gamlss.R: GAMLSS-RS iteration 1: Global Deviance = 5779.746
> test-gamlss.R: GAMLSS-RS iteration 2: Global Deviance = 5779.746
> test-gamlss.R: GAMLSS-RS iteration 1: Global Deviance = 703.1164
> test-gamlss.R: GAMLSS-RS iteration 2: Global Deviance = 703.1164
> test-get_model.R: Loading required namespace: GPArotation
> test-get_random.R: boundary (singular) fit: see help('isSingular')
Saving _problems/test-get_datagrid-486.R
Saving _problems/test-get_datagrid-1143.R
> test-glmmPQL.R: iteration 1
> test-is_converged.R: boundary (singular) fit: see help('isSingular')
> test-mmrm.R: mmrm() registered as emmeans extension
> test-mmrm.R: mmrm() registered as car::Anova extension
> test-model_info.R: boundary (singular) fit: see help('isSingular')
> test-nestedLogit.R: list(work = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 1L,
> test-nestedLogit.R: 0L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,
> test-nestedLogit.R: 0L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L,
> test-nestedLogit.R: 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L,
> test-nestedLogit.R: 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 1L,
> test-nestedLogit.R: 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 0L,
> test-nestedLogit.R: 1L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 0L
> test-nestedLogit.R: ), full = c(1L, 1L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 0L,
> test-nestedLogit.R: 1L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 1L, 1L, 0L, 0L,
> test-nestedLogit.R: 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L))
> test-polr.R:
> test-polr.R: Re-fitting to get Hessian
> test-polr.R:
> test-polr.R:
> test-polr.R: Re-fitting to get Hessian
> test-polr.R:
> test-survey_coxph.R: Stratified Independent Sampling design (with replacement)
> test-survey_coxph.R: dpbc <- survey::svydesign(
> test-survey_coxph.R: id = ~1,
> test-survey_coxph.R: prob = ~randprob,
> test-survey_coxph.R: strata = ~edema,
> test-survey_coxph.R: data = subset(pbc, randomized)
> test-survey_coxph.R: )
> test-survey_coxph.R: Stratified Independent Sampling design (with replacement)
> test-survey_coxph.R: dpbc <- survey::svydesign(
> test-survey_coxph.R: id = ~1,
> test-survey_coxph.R: prob = ~randprob,
> test-survey_coxph.R: strata = ~edema,
> test-survey_coxph.R: data = subset(pbc, randomized)
> test-survey_coxph.R: )
> test-survey_coxph.R: Stratified Independent Sampling design (with replacement)
> test-survey_coxph.R: dpbc <- survey::svydesign(
> test-survey_coxph.R: id = ~1,
> test-survey_coxph.R: prob = ~randprob,
> test-survey_coxph.R: strata = ~edema,
> test-survey_coxph.R: data = subset(pbc, randomized)
> test-survey_coxph.R: )
[ FAIL 2 | WARN 2 | SKIP 96 | PASS 3510 ]
══ Skipped tests (96) ══════════════════════════════════════════════════════════
• On CRAN (89): 'test-GLMMadaptive.R:2:1', 'test-averaging.R:1:1',
'test-bias_correction.R:1:1', 'test-betareg.R:197:5', 'test-brms.R:1:1',
'test-brms_aterms.R:1:1', 'test-blmer.R:262:3',
'test-brms_gr_random_effects.R:1:1', 'test-brms_missing.R:1:1',
'test-brms_mm.R:1:1', 'test-brms_von_mises.R:1:1',
'test-clean_names.R:109:3', 'test-clean_parameters.R:1:1',
'test-coxme.R:1:1', 'test-clmm.R:170:3', 'test-cpglmm.R:152:3',
'test-display.R:1:1', 'test-display.R:15:1', 'test-export_table.R:3:1',
'test-export_table.R:7:1', 'test-export_table.R:134:3',
'test-export_table.R:164:3', 'test-export_table.R:193:1',
'test-export_table.R:278:1', 'test-export_table.R:296:3',
'test-export_table.R:328:3', 'test-export_table.R:385:1',
'test-export_table.R:406:3', 'test-export_table.R:470:3',
'test-find_smooth.R:39:3', 'test-fixest.R:2:1', 'test-find_random.R:43:3',
'test-format_table.R:2:1', 'test-format_table_ci.R:72:1', 'test-gam.R:2:1',
'test-get_data.R:507:1', 'test-get_loglikelihood.R:143:3',
'test-get_loglikelihood.R:223:3', 'test-get_predicted.R:2:1',
'test-get_priors.R:1:1', 'test-get_varcov.R:43:3', 'test-get_varcov.R:57:3',
'test-get_datagrid.R:1068:3', 'test-get_datagrid.R:1105:5',
'test-is_converged.R:47:1', 'test-iv_robust.R:120:3', 'test-lavaan.R:1:1',
'test-lcmm.R:1:1', 'test-lme.R:28:3', 'test-lme.R:212:3',
'test-glmmTMB.R:67:3', 'test-glmmTMB.R:767:3', 'test-glmmTMB.R:803:3',
'test-glmmTMB.R:1142:3', 'test-marginaleffects.R:1:1', 'test-mgcv.R:1:1',
'test-mipo.R:1:1', 'test-mlogit.R:1:1', 'test-model_info.R:106:3',
'test-modelbased.R:1:1', 'test-mvrstanarm.R:1:1', 'test-null_model.R:85:3',
'test-panelr-asym.R:165:3', 'test-panelr.R:301:3', 'test-phylolm.R:1:1',
'test-print_parameters.R:1:1', 'test-r2_nakagawa_bernoulli.R:1:1',
'test-r2_nakagawa_beta.R:1:1', 'test-r2_nakagawa_binomial.R:1:1',
'test-r2_nakagawa_gamma.R:1:1', 'test-r2_nakagawa_linear.R:1:1',
'test-r2_nakagawa_negbin.R:1:1', 'test-r2_nakagawa_negbin_zi.R:1:1',
'test-r2_nakagawa_ordered_beta.R:1:1', 'test-r2_nakagawa_poisson.R:1:1',
'test-r2_nakagawa_poisson_zi.R:1:1',
'test-r2_nakagawa_truncated_poisson.R:1:1', 'test-r2_nakagawa_tweedie.R:1:1',
'test-rlmer.R:276:3', 'test-rms.R:1:1', 'test-rqss.R:1:1',
'test-rstanarm.R:1:1', 'test-sdmTMB.R:1:1', 'test-selection.R:2:1',
'test-spatial.R:2:1', 'test-svylme.R:1:1', 'test-tidymodels.R:1:1',
'test-vgam.R:2:1', 'test-weightit.R:1:1'
• On Linux (3): 'test-BayesFactorBF.R:1:1', 'test-MCMCglmm.R:1:1',
'test-get_data.R:161:3'
• Package `logistf` is loaded and breaks `mmrm::mmrm()` (1): 'test-mmrm.R:4:1'
• works interactively (2): 'test-coxph-panel.R:34:3', 'test-coxph.R:38:3'
• {bigglm} is not installed (1): 'test-model_info.R:24:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_datagrid.R:481:3'): get_datagrid - marginaleffects ─────────
Error in ``[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp)`: attempt access index 17/17 in VECTOR_ELT
Backtrace:
▆
1. └─marginaleffects::comparisons(...) at test-get_datagrid.R:481:3
2. ├─base::do.call("get_comparisons", args)
3. └─marginaleffects:::get_comparisons(...)
4. ├─out[, `:=`(tmp_idx, seq_len(.N)), by = tmp]
5. └─data.table:::`[.data.table`(...)
── Error ('test-get_datagrid.R:1143:3'): get_datagrid - marginaleffects, avg_slopes, non-Bayesian ──
Error in ``[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp)`: attempt access index 19/19 in VECTOR_ELT
Backtrace:
▆
1. └─marginaleffects::comparisons(...)
2. ├─base::do.call("get_comparisons", args)
3. └─marginaleffects:::get_comparisons(...)
4. ├─out[, `:=`(tmp_idx, seq_len(.N)), by = tmp]
5. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 2 | SKIP 96 | PASS 3510 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [11s/15s] OK
- checking PDF version of manual ... [9s/12s] OK
- checking HTML version of manual ... [9s/12s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs