Last updated on 2025-12-20 17:50:30 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.4.4 | 31.32 | 549.97 | 581.29 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 1.4.4 | 21.46 | 342.37 | 363.83 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.4.4 | 62.00 | 929.44 | 991.44 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 1.4.4 | 59.00 | 954.26 | 1013.26 | OK | |
| r-devel-windows-x86_64 | 1.4.4 | 33.00 | 368.00 | 401.00 | ERROR | |
| r-patched-linux-x86_64 | 1.4.4 | 31.64 | 538.78 | 570.42 | OK | |
| r-release-linux-x86_64 | 1.4.4 | 28.24 | 532.65 | 560.89 | OK | |
| r-release-macos-arm64 | 1.4.4 | 7.00 | 139.00 | 146.00 | OK | |
| r-release-macos-x86_64 | 1.4.4 | 23.00 | 494.00 | 517.00 | OK | |
| r-release-windows-x86_64 | 1.4.4 | 36.00 | 414.00 | 450.00 | OK | |
| r-oldrel-macos-arm64 | 1.4.4 | 7.00 | 160.00 | 167.00 | OK | |
| r-oldrel-macos-x86_64 | 1.4.4 | 23.00 | 531.00 | 554.00 | OK | |
| r-oldrel-windows-x86_64 | 1.4.4 | 39.00 | 539.00 | 578.00 | NOTE |
Version: 1.4.4
Check: examples
Result: 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
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
find_algorithm 4.11 0.21 5.642
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.4.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [333s/170s]
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
> test-gamlss.R: 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-brms_gr_random_effects.R:1:1',
'test-brms_missing.R:1:1', 'test-blmer.R:262:3', '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-format_table.R:2:1', 'test-format_table_ci.R:72:1',
'test-find_random.R:43:3', '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
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.4.4
Check: examples
Result: 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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.4.4
Check: tests
Result: 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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.4.4
Check: examples
Result: ERROR
Running examples in ‘insight-Ex.R’ failed
The error most likely occurred in:
> ### 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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.4.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [567s/537s]
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
> test-gamlss.R: 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')
> test-glmmPQL.R: iteration 1
Saving _problems/test-get_datagrid-486.R
Saving _problems/test-get_datagrid-1143.R
> 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
> test-survey_coxph.R: 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-blmer.R:262:3', 'test-brms.R:1:1',
'test-brms_aterms.R:1:1', '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-betareg.R:197:5', '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-glmmTMB.R:67:3', 'test-glmmTMB.R:767:3', 'test-glmmTMB.R:803:3',
'test-glmmTMB.R:1142:3', 'test-iv_robust.R:120:3',
'test-is_converged.R:47:1', 'test-lavaan.R:1:1', 'test-lcmm.R:1:1',
'test-lme.R:28:3', 'test-lme.R:212: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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.4.4
Check: tests
Result: ERROR
Running 'testthat.R' [110s]
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')
> 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-print_parameters.R:
Error:
! testthat subprocess exited in file 'test-print_parameters.R'.
Caused by error:
! R session crashed with exit code -1073741819
Backtrace:
▆
1. └─testthat::test_check("insight")
2. └─testthat::test_dir(...)
3. └─testthat:::test_files(...)
4. └─testthat:::test_files_parallel(...)
5. ├─withr::with_dir(...)
6. │ └─base::force(code)
7. ├─testthat::with_reporter(...)
8. │ └─base::tryCatch(...)
9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
12. └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
13. └─queue$poll(Inf)
14. └─base::lapply(...)
15. └─testthat (local) FUN(X[[i]], ...)
16. └─private$handle_error(msg, i)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.4.4
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: 'fungible'
Flavor: r-oldrel-windows-x86_64