* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/broom.helpers.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘broom.helpers/DESCRIPTION’ ... OK * this is package ‘broom.helpers’ version ‘1.22.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 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 ‘broom.helpers’ can be installed ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [11s/11s] OK * checking Rd files ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... [24s/25s] ERROR Running examples in ‘broom.helpers-Ex.R’ failed The error most likely occurred in: > ### Name: tidy_avg_comparisons > ### Title: Marginal Contrasts with 'marginaleffects::avg_comparisons()' > ### Aliases: tidy_avg_comparisons > > ### ** Examples > > ## Don't show: > if (.assert_package("marginaleffects", boolean = TRUE)) withAutoprint({ # examplesIf + ## End(Don't show) + ## No test: + # Average Marginal Contrasts + + df <- Titanic |> + dplyr::as_tibble() |> + tidyr::uncount(n) |> + dplyr::mutate(Survived = factor(Survived, c("No", "Yes"))) + mod <- glm( + Survived ~ Class + Age + Sex, + data = df, family = binomial + ) + tidy_avg_comparisons(mod) + tidy_plus_plus(mod, tidy_fun = tidy_avg_comparisons) + + mod2 <- lm(Petal.Length ~ poly(Petal.Width, 2) + Species, data = iris) + tidy_avg_comparisons(mod2) + + # Custumizing the type of contrasts + tidy_avg_comparisons( + mod2, + variables = list(Petal.Width = 2, Species = "pairwise") + ) + + # Marginal Contrasts at the Mean + tidy_avg_comparisons(mod, newdata = "mean") + tidy_plus_plus(mod, tidy_fun = tidy_avg_comparisons, newdata = "mean") + ## End(No test) + ## Don't show: + }) # examplesIf > df <- dplyr::mutate(tidyr::uncount(dplyr::as_tibble(Titanic), n), Survived = factor(Survived, + c("No", "Yes"))) > mod <- glm(Survived ~ Class + Age + Sex, data = df, family = binomial) > tidy_avg_comparisons(mod) Error in `[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp) : attempt access index 12/12 in VECTOR_ELT Calls: withAutoprint ... -> do.call -> get_comparisons -> [ -> [.data.table Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘spelling.R’ Running ‘testthat.R’ [111s/112s] [112s/112s] OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s/23s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/broom.helpers.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:56.31, 214.07 + 20.59