* using log directory 'd:/Rcompile/CRANpkg/local/4.4/parameters.Rcheck' * using R version 4.4.2 (2024-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'parameters/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'parameters' version '0.24.0' * 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 'parameters' can be installed ... OK * 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [2s] 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 ... [51s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [13s] ERROR Running examples in 'parameters-Ex.R' failed The error most likely occurred in: > ### Name: dominance_analysis > ### Title: Dominance Analysis > ### Aliases: dominance_analysis > > ### ** Examples > > ## Don't show: > if (require("domir") && require("performance")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data(mtcars) + + # Dominance Analysis with Logit Regression + model <- glm(vs ~ cyl + carb + mpg, data = mtcars, family = binomial()) + + performance::r2(model) + dominance_analysis(model) + + # Dominance Analysis with Weighted Logit Regression + model_wt <- glm(vs ~ cyl + carb + mpg, + data = mtcars, + weights = wt, family = quasibinomial() + ) + + dominance_analysis(model_wt, quote_args = "weights") + ## Don't show: + }) # examplesIf Loading required package: domir Loading required package: performance > data(mtcars) > model <- glm(vs ~ cyl + carb + mpg, data = mtcars, family = binomial()) > performance::r2(model) # R2 for Logistic Regression Tjur's R2: 0.741 > dominance_analysis(model) Error in eval(expr[[3]]) : object 'da_df_cdl' not found Calls: ... .select_square_bracket -> .eval_expr -> eval -> eval Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [108s] ERROR Running 'testthat.R' [108s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(parameters) > library(testthat) > > test_check("parameters") Starting 2 test processes [ FAIL 1 | WARN 4 | SKIP 117 | PASS 674 ] ══ Skipped tests (117) ═════════════════════════════════════════════════════════ • Installed marginaleffects is version 0.24.0; but 1.0.0 is required (1): 'test-marginaleffects.R:1:1' • On CRAN (109): 'test-GLMMadaptive.R:1:1', 'test-averaging.R:1:1', 'test-backticks.R:1:1', 'test-bootstrap_emmeans.R:1:1', 'test-bootstrap_parameters.R:1:1', 'test-brms.R:1:1', 'test-compare_parameters.R:91:7', 'test-compare_parameters.R:95:5', 'test-complete_separation.R:14:5', 'test-complete_separation.R:24:5', 'test-complete_separation.R:35:5', 'test-coxph.R:79:5', 'test-efa.R:1:1', 'test-emmGrid-df_colname.R:1:1', 'test-equivalence_test.R:10:3', 'test-equivalence_test.R:18:3', 'test-equivalence_test.R:82:3', 'test-format_model_parameters2.R:2:3', 'test-gam.R:30:1', 'test-get_scores.R:1:1', 'test-glmer.R:1:1', 'test-glmmTMB-2.R:1:1', 'test-glmmTMB-profile_CI.R:2:3', 'test-glmmTMB.R:8:1', 'test-helper.R:1:1', 'test-ivreg.R:54:3', 'test-include_reference.R:15:3', 'test-include_reference.R:67:3', 'test-lmerTest.R:1:1', 'test-mipo.R:19:3', 'test-mipo.R:33:3', 'test-mmrm.R:1:1', 'test-model_parameters.anova.R:1:1', 'test-model_parameters.aov.R:1:1', 'test-model_parameters.BFBayesFactor.R:4:3', 'test-model_parameters.BFBayesFactor.R:77:3', 'test-model_parameters.BFBayesFactor.R:114:3', 'test-model_parameters.bracl.R:5:1', 'test-model_parameters.cgam.R:1:1', 'test-model_parameters.coxme.R:1:1', 'test-model_parameters.aov_es_ci.R:158:3', 'test-model_parameters.aov_es_ci.R:269:3', 'test-model_parameters.aov_es_ci.R:319:3', 'test-model_parameters.aov_es_ci.R:372:3', 'test-model_parameters.epi2x2.R:1:1', 'test-model_parameters.fixest_multi.R:3:1', 'test-model_parameters.fixest.R:2:3', 'test-model_parameters.fixest.R:77:3', 'test-model_parameters.ggeffects.R:12:3', 'test-model_parameters.glmgee.R:1:1', 'test-model_parameters.glm.R:40:3', 'test-model_parameters.glm.R:68:3', 'test-model_parameters.logistf.R:1:1', 'test-model_parameters.mclogit.R:5:1', 'test-model_parameters.mediate.R:32:3', 'test-model_parameters.mixed.R:2:1', 'test-model_parameters.nnet.R:5:1', 'test-model_parameters.vgam.R:3:1', 'test-model_parameters_df.R:1:1', 'test-model_parameters_ordinal.R:1:1', 'test-model_parameters_random_pars.R:1:1', 'test-model_parameters_std.R:1:1', 'test-model_parameters_std_mixed.R:3:1', 'test-n_factors.R:10:3', 'test-n_factors.R:26:3', 'test-n_factors.R:76:3', 'test-p_adjust.R:1:1', 'test-p_direction.R:1:1', 'test-p_significance.R:1:1', 'test-p_value.R:14:1', 'test-panelr.R:1:1', 'test-pipe.R:1:1', 'test-pca.R:66:3', 'test-plm.R:111:3', 'test-posterior.R:2:1', 'test-pool_parameters.R:11:3', 'test-pool_parameters.R:32:1', 'test-print_AER_labels.R:11:5', 'test-printing-stan.R:2:1', 'test-printing.R:1:1', 'test-printing2.R:15:7', 'test-printing2.R:22:7', 'test-printing2.R:27:7', 'test-printing2.R:32:7', 'test-printing2.R:37:7', 'test-printing2.R:49:7', 'test-printing2.R:91:7', 'test-printing2.R:127:7', 'test-quantreg.R:1:1', 'test-random_effects_ci-glmmTMB.R:6:1', 'test-random_effects_ci.R:4:1', 'test-robust.R:2:1', 'test-rstanarm.R:3:1', 'test-serp.R:16:5', 'test-simulate_model.R:19:1', 'test-simulate_parameters.R:18:1', 'test-pretty_names.R:65:5', 'test-svylme.R:1:1', 'test-visualisation_recipe.R:7:3', 'test-weightit.R:23:3', 'test-weightit.R:43:3', 'test-standardize_parameters.R:31:3', 'test-standardize_parameters.R:36:3', 'test-standardize_parameters.R:61:3', 'test-standardize_parameters.R:175:3', 'test-standardize_parameters.R:300:3', 'test-standardize_parameters.R:334:3', 'test-standardize_parameters.R:428:3', 'test-standardize_parameters.R:518:3' • TODO: fix this test (1): 'test-model_parameters.lqmm.R:40:3' • TODO: this one actually is not correct. (1): 'test-model_parameters_robust.R:127:3' • empty test (5): 'test-wrs2.R:8:1', 'test-wrs2.R:18:1', 'test-wrs2.R:30:1', 'test-wrs2.R:43:1', 'test-wrs2.R:55:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-dominance_analysis.R:6:1'): (code run outside of `test_that()`) ── Error in `eval(expr[[3]])`: object 'da_df_cdl' not found Backtrace: ▆ 1. └─parameters::dominance_analysis(DA_test_model) at test-dominance_analysis.R:6:1 2. └─datawizard::data_rename(...) 3. └─datawizard:::.select_nse(...) 4. └─datawizard:::.eval_expr(...) 5. └─datawizard:::.eval_call(...) 6. └─datawizard:::.select_square_bracket(...) [ FAIL 1 | WARN 4 | SKIP 117 | PASS 674 ] Deleting unused snapshots: • equivalence_test/equivalence-test-1.svg • equivalence_test/equivalence-test-2.svg • equivalence_test/equivalence-test-3.svg • equivalence_test/equivalence-test-4.svg • equivalence_test/equivalence-test-5.svg 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 ... [38s] OK * checking HTML version of manual ... [22s] OK * DONE Status: 2 ERRORs