* using log directory 'd:/Rcompile/CRANpkg/local/4.6/broom.Rcheck' * 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 'broom/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'broom' version '1.0.9' * 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 'broom' 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 ... [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 ... [12s] OK * checking Rd files ... [6s] 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [13s] ERROR Running examples in 'broom-Ex.R' failed The error most likely occurred in: > ### Name: augment.lm > ### Title: Augment data with information from a(n) lm object > ### Aliases: augment.lm > > ### ** Examples > > ## Don't show: > if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + + library(ggplot2) + library(dplyr) + + mod <- lm(mpg ~ wt + qsec, data = mtcars) + + tidy(mod) + glance(mod) + + # coefficient plot + d <- tidy(mod, conf.int = TRUE) + + ggplot(d, aes(estimate, term, xmin = conf.low, xmax = conf.high, height = 0)) + + geom_point() + + geom_vline(xintercept = 0, lty = 4) + + geom_errorbarh() + + # aside: There are tidy() and glance() methods for lm.summary objects too. + # this can be useful when you want to conserve memory by converting large lm + # objects into their leaner summary.lm equivalents. + s <- summary(mod) + tidy(s, conf.int = TRUE) + glance(s) + + augment(mod) + augment(mod, mtcars, interval = "confidence") + + # predict on new data + newdata <- mtcars |> + head(6) |> + mutate(wt = wt + 1) + augment(mod, newdata = newdata) + + # ggplot2 example where we also construct 95% prediction interval + + # simpler bivariate model since we're plotting in 2D + mod2 <- lm(mpg ~ wt, data = mtcars) + + au <- augment(mod2, newdata = newdata, interval = "prediction") + + ggplot(au, aes(wt, mpg)) + + geom_point() + + geom_line(aes(y = .fitted)) + + geom_ribbon(aes(ymin = .lower, ymax = .upper), col = NA, alpha = 0.3) + + # predict on new data without outcome variable. Output does not include .resid + newdata <- newdata |> + select(-mpg) + + augment(mod, newdata = newdata) + + au <- augment(mod, data = mtcars) + + ggplot(au, aes(.hat, .std.resid)) + + geom_vline(size = 2, colour = "white", xintercept = 0) + + geom_hline(size = 2, colour = "white", yintercept = 0) + + geom_point() + + geom_smooth(se = FALSE) + + plot(mod, which = 6) + + ggplot(au, aes(.hat, .cooksd)) + + geom_vline(xintercept = 0, colour = NA) + + geom_abline(slope = seq(0, 3, by = 0.5), colour = "white") + + geom_smooth(se = FALSE) + + geom_point() + + # column-wise models + a <- matrix(rnorm(20), nrow = 10) + b <- a + rnorm(length(a)) + result <- lm(b ~ a) + + tidy(result) + ## Don't show: + }) # examplesIf > library(ggplot2) > library(dplyr) Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union > mod <- lm(mpg ~ wt + qsec, data = mtcars) > tidy(mod) # A tibble: 3 × 5 term estimate std.error statistic p.value 1 (Intercept) 19.7 5.25 3.76 7.65e- 4 2 wt -5.05 0.484 -10.4 2.52e-11 3 qsec 0.929 0.265 3.51 1.50e- 3 > glance(mod) Error in ll(object) : could not find function "ll" Calls: ... tibble_quos -> eval_tidy -> -> AIC.default Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [32s] ERROR Running 'spelling.R' [0s] Running 'test-all.R' [16s] Running 'testthat.R' [16s] Running the tests in 'tests/test-all.R' failed. Complete output: > library(testthat) > test_check("broom") Loading required package: broom Attaching package: 'modeldata' The following object is masked from 'package:datasets': penguins Multiple parameters; naming those columns ndf and ddf. [ FAIL 4 | WARN 0 | SKIP 99 | PASS 949 ] ══ Skipped tests (99) ══════════════════════════════════════════════════════════ • On CRAN (99): 'test-aer.R:1:1', 'test-auc.R:1:1', 'test-bbmle.R:1:1', 'test-betareg.R:1:1', 'test-biglm.R:1:1', 'test-bingroup.R:1:1', 'test-boot.R:1:1', 'test-btergm.R:1:1', 'test-car.R:1:1', 'test-caret.R:1:1', 'test-cluster.R:1:1', 'test-cmprsk.R:1:1', 'test-data-frame.R:2:3', 'test-drc.R:1:1', 'test-emmeans.R:1:1', 'test-epiR.R:1:1', 'test-ergm.R:1:1', 'test-fixest.R:1:1', 'test-gam.R:1:1', 'test-geepack.R:1:1', 'test-glmnetUtils.R:1:1', 'test-gmm.R:1:1', 'test-hmisc.R:1:1', 'test-joineRML.R:1:1', 'test-kendall.R:1:1', 'test-ks.R:1:1', 'test-lavaan.R:1:1', 'test-leaps.R:1:1', 'test-lfe.R:1:1', 'test-list-irlba.R:1:1', 'test-list-optim.R:1:1', 'test-list-svd.R:1:1', 'test-list-xyz.R:1:1', 'test-list.R:1:1', 'test-lmbeta-lm-beta.R:1:1', 'test-lmodel2.R:1:1', 'test-lmtest.R:1:1', 'test-maps.R:1:1', 'test-margins.R:1:1', 'test-mass-fitdistr.R:1:1', 'test-mass-polr.R:1:1', 'test-mass-ridgelm.R:1:1', 'test-mass-rlm.R:1:1', 'test-mclust.R:1:1', 'test-mediation.R:1:1', 'test-metafor.R:1:1', 'test-mfx.R:1:1', 'test-mgcv.R:1:1', 'test-mlogit.R:1:1', 'test-muhaz.R:1:1', 'test-multcomp.R:1:1', 'test-nnet.R:1:1', 'test-null-and-default.R:9:3', 'test-null-and-default.R:23:3', 'test-null-and-default.R:39:3', 'test-ordinal.R:1:1', 'test-plm.R:1:1', 'test-polca.R:1:1', 'test-psych.R:1:1', 'test-quantreg-nlrq.R:1:1', 'test-quantreg-rq.R:1:1', 'test-quantreg-rqs.R:1:1', 'test-robust-glmrob.R:3:3', 'test-robust.R:1:1', 'test-robustbase.R:1:1', 'test-spdep.R:1:1', 'test-speedglm-speedglm.R:1:1', 'test-speedglm-speedlm.R:1:1', 'test-stats-anova.R:50:3', 'test-stats-arima.R:1:1', 'test-stats-decompose.R:1:1', 'test-stats-factanal.R:1:1', 'test-stats-glm.R:82:3', 'test-stats-glm.R:89:3', 'test-stats-htest.R:21:3', 'test-stats-htest.R:100:3', 'test-stats-htest.R:134:3', 'test-stats-lm.R:36:3', 'test-stats-lm.R:148:3', 'test-stats-mlm.R:1:1', 'test-stats-nls.R:1:1', 'test-stats-prcomp.R:42:3', 'test-survey.R:1:1', 'test-survival-aareg.R:1:1', 'test-survival-cch.R:1:1', 'test-survival-pyears.R:1:1', 'test-survival-survdiff.R:1:1', 'test-survival-survexp.R:1:1', 'test-survival-survfit.R:1:1', 'test-survival-survreg.R:1:1', 'test-systemfit.R:1:1', 'test-utilities.R:5:3', 'test-utilities.R:25:3', 'test-utilities.R:31:3', 'test-utilities.R:208:3', 'test-utilities.R:218:3', 'test-utilities.R:235:3', 'test-vars.R:1:1', 'test-zoo.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-mass-negbin.R:33:3'): glance.negbin ──────────────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-mass-negbin.R:33:3 2. ├─broom:::glance.negbin(fit) 3. │ └─tibble::tibble(...) 4. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 5. │ └─rlang::eval_tidy(xs[[j]], mask) 6. ├─stats::AIC(x) 7. └─stats:::AIC.default(x) ── Error ('test-stats-lm.R:59:3'): glance.lm ─────────────────────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-lm.R:59:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) ── Error ('test-stats-lm.R:155:3'): glance.lm returns non-NA entries with 0-intercept model (#1209) ── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-lm.R:155:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) ── Error ('test-stats-summary-lm.R:29:3'): glance.summary.lm ─────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-summary-lm.R:29:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) [ FAIL 4 | WARN 0 | SKIP 99 | PASS 949 ] Error: Test failures Execution halted Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(broom) > > test_check("broom") Attaching package: 'modeldata' The following object is masked from 'package:datasets': penguins Multiple parameters; naming those columns ndf and ddf. [ FAIL 4 | WARN 0 | SKIP 99 | PASS 949 ] ══ Skipped tests (99) ══════════════════════════════════════════════════════════ • On CRAN (99): 'test-aer.R:1:1', 'test-auc.R:1:1', 'test-bbmle.R:1:1', 'test-betareg.R:1:1', 'test-biglm.R:1:1', 'test-bingroup.R:1:1', 'test-boot.R:1:1', 'test-btergm.R:1:1', 'test-car.R:1:1', 'test-caret.R:1:1', 'test-cluster.R:1:1', 'test-cmprsk.R:1:1', 'test-data-frame.R:2:3', 'test-drc.R:1:1', 'test-emmeans.R:1:1', 'test-epiR.R:1:1', 'test-ergm.R:1:1', 'test-fixest.R:1:1', 'test-gam.R:1:1', 'test-geepack.R:1:1', 'test-glmnetUtils.R:1:1', 'test-gmm.R:1:1', 'test-hmisc.R:1:1', 'test-joineRML.R:1:1', 'test-kendall.R:1:1', 'test-ks.R:1:1', 'test-lavaan.R:1:1', 'test-leaps.R:1:1', 'test-lfe.R:1:1', 'test-list-irlba.R:1:1', 'test-list-optim.R:1:1', 'test-list-svd.R:1:1', 'test-list-xyz.R:1:1', 'test-list.R:1:1', 'test-lmbeta-lm-beta.R:1:1', 'test-lmodel2.R:1:1', 'test-lmtest.R:1:1', 'test-maps.R:1:1', 'test-margins.R:1:1', 'test-mass-fitdistr.R:1:1', 'test-mass-polr.R:1:1', 'test-mass-ridgelm.R:1:1', 'test-mass-rlm.R:1:1', 'test-mclust.R:1:1', 'test-mediation.R:1:1', 'test-metafor.R:1:1', 'test-mfx.R:1:1', 'test-mgcv.R:1:1', 'test-mlogit.R:1:1', 'test-muhaz.R:1:1', 'test-multcomp.R:1:1', 'test-nnet.R:1:1', 'test-null-and-default.R:9:3', 'test-null-and-default.R:23:3', 'test-null-and-default.R:39:3', 'test-ordinal.R:1:1', 'test-plm.R:1:1', 'test-polca.R:1:1', 'test-psych.R:1:1', 'test-quantreg-nlrq.R:1:1', 'test-quantreg-rq.R:1:1', 'test-quantreg-rqs.R:1:1', 'test-robust-glmrob.R:3:3', 'test-robust.R:1:1', 'test-robustbase.R:1:1', 'test-spdep.R:1:1', 'test-speedglm-speedglm.R:1:1', 'test-speedglm-speedlm.R:1:1', 'test-stats-anova.R:50:3', 'test-stats-arima.R:1:1', 'test-stats-decompose.R:1:1', 'test-stats-factanal.R:1:1', 'test-stats-glm.R:82:3', 'test-stats-glm.R:89:3', 'test-stats-htest.R:21:3', 'test-stats-htest.R:100:3', 'test-stats-htest.R:134:3', 'test-stats-lm.R:36:3', 'test-stats-lm.R:148:3', 'test-stats-mlm.R:1:1', 'test-stats-nls.R:1:1', 'test-stats-prcomp.R:42:3', 'test-survey.R:1:1', 'test-survival-aareg.R:1:1', 'test-survival-cch.R:1:1', 'test-survival-pyears.R:1:1', 'test-survival-survdiff.R:1:1', 'test-survival-survexp.R:1:1', 'test-survival-survfit.R:1:1', 'test-survival-survreg.R:1:1', 'test-systemfit.R:1:1', 'test-utilities.R:5:3', 'test-utilities.R:25:3', 'test-utilities.R:31:3', 'test-utilities.R:208:3', 'test-utilities.R:218:3', 'test-utilities.R:235:3', 'test-vars.R:1:1', 'test-zoo.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-mass-negbin.R:33:3'): glance.negbin ──────────────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-mass-negbin.R:33:3 2. ├─broom:::glance.negbin(fit) 3. │ └─tibble::tibble(...) 4. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 5. │ └─rlang::eval_tidy(xs[[j]], mask) 6. ├─stats::AIC(x) 7. └─stats:::AIC.default(x) ── Error ('test-stats-lm.R:59:3'): glance.lm ─────────────────────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-lm.R:59:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) ── Error ('test-stats-lm.R:155:3'): glance.lm returns non-NA entries with 0-intercept model (#1209) ── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-lm.R:155:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) ── Error ('test-stats-summary-lm.R:29:3'): glance.summary.lm ─────────────────── Error in `ll(object)`: could not find function "ll" Backtrace: ▆ 1. ├─generics::glance(fit) at test-stats-summary-lm.R:29:3 2. ├─broom:::glance.lm(fit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) [ FAIL 4 | WARN 0 | SKIP 99 | PASS 949 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [13s] ERROR Error(s) in re-building vignettes: --- re-building 'adding-tidiers.Rmd' using rmarkdown --- finished re-building 'adding-tidiers.Rmd' --- re-building 'available-methods.Rmd' using rmarkdown --- finished re-building 'available-methods.Rmd' --- re-building 'bootstrapping.Rmd' using rmarkdown --- finished re-building 'bootstrapping.Rmd' --- re-building 'broom.Rmd' using rmarkdown Quitting from broom.Rmd:74-76 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `ll()`: ! could not find function "ll" --- Backtrace: ▆ 1. ├─generics::glance(lmfit) 2. ├─broom:::glance.lm(lmfit) 3. │ ├─base::with(...) 4. │ └─base::with.default(...) 5. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 6. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 7. │ └─tibble::tibble(...) 8. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 9. │ └─rlang::eval_tidy(xs[[j]], mask) 10. ├─stats::AIC(x) 11. └─stats:::AIC.default(x) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'broom.Rmd' failed with diagnostics: could not find function "ll" --- failed re-building 'broom.Rmd' --- re-building 'broom_and_dplyr.Rmd' using rmarkdown Quitting from broom_and_dplyr.Rmd:164-182 [unnamed-chunk-15] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NULL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'broom_and_dplyr.Rmd' failed with diagnostics: ℹ In argument: `glanced = map(fit, glance)`. Caused by error in `map()`: ℹ In index: 1. Caused by error in `ll()`: ! could not find function "ll" --- failed re-building 'broom_and_dplyr.Rmd' --- re-building 'kmeans.Rmd' using rmarkdown --- finished re-building 'kmeans.Rmd' SUMMARY: processing the following files failed: 'broom.Rmd' 'broom_and_dplyr.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [38s] OK * checking HTML version of manual ... [51s] OK * DONE Status: 3 ERRORs