- 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 'moderndive/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'moderndive' version '0.7.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 'moderndive' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'pop_sd.Rd' 'tidy_summary.R'
- 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 ... [1s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [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 ... [5s] OK
- checking Rd files ... [1s] 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 ... [2s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking sizes of PDF files under 'inst/doc' ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [6s] ERROR
Running examples in 'moderndive-Ex.R' failed
The error most likely occurred in:
> ### Name: get_regression_summaries
> ### Title: Get regression summary values
> ### Aliases: get_regression_summaries
>
> ### ** Examples
>
> library(moderndive)
>
> # Fit lm() regression:
> mpg_model <- lm(mpg ~ cyl, data = mtcars)
>
> # Get regression summaries:
> get_regression_summaries(mpg_model)
Error in ll(object) : could not find function "ll"
Calls: get_regression_summaries ... tibble_quos -> eval_tidy -> <Anonymous> -> AIC.default
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [6s] ERROR
Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(moderndive)
>
> test_check("moderndive")
[ FAIL 1 | WARN 1 | SKIP 4 | PASS 74 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-geom_categorical_model.R:13:3',
'test-geom_categorical_model.R:49:3', 'test-geom_parallel_slopes.R:28:3',
'test-geom_parallel_slopes.R:95:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_regression_functions.R:112:3'): README code works ──────────
Error in `ll(object)`: could not find function "ll"
Backtrace:
▆
1. ├─testthat::expect_silent(get_regression_summaries(mpg_model)) at test-get_regression_functions.R:112:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .capture(...)
4. │ │ ├─withr::with_output_sink(...)
5. │ │ │ └─base::force(code)
6. │ │ ├─base::withCallingHandlers(...)
7. │ │ └─base::withVisible(code)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. ├─moderndive::get_regression_summaries(mpg_model)
10. │ └─... %>% ...
11. ├─dplyr::select(., r_squared, adj_r_squared, mse, rmse, everything())
12. ├─dplyr::bind_cols(., mse_and_rmse)
13. │ └─rlang::list2(...)
14. ├─janitor::clean_names(.)
15. ├─tibble::as_tibble(.)
16. ├─dplyr::select(., -c(AIC, BIC, deviance, df.residual, logLik))
17. ├─dplyr::mutate_if(., is.numeric, round, digits = digits)
18. │ └─dplyr:::check_grouped(.tbl, "mutate", "if")
19. │ └─dplyr::is_grouped_df(tbl)
20. ├─generics::glance(.)
21. ├─broom:::glance.lm(.)
22. │ ├─base::with(...)
23. │ └─base::with.default(...)
24. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
25. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
26. │ └─tibble::tibble(...)
27. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
28. │ └─rlang::eval_tidy(xs[[j]], mask)
29. ├─stats::AIC(x)
30. └─stats:::AIC.default(x)
[ FAIL 1 | WARN 1 | SKIP 4 | PASS 74 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s] ERROR
Error(s) in re-building vignettes:
--- re-building 'moderndive.Rmd' using rmarkdown
Quitting from moderndive.Rmd:167-169 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `ll()`:
! could not find function "ll"
---
Backtrace:
▆
1. ├─moderndive::get_regression_summaries(score_model)
2. │ └─... %>% ...
3. ├─dplyr::select(., r_squared, adj_r_squared, mse, rmse, everything())
4. ├─dplyr::bind_cols(., mse_and_rmse)
5. │ └─rlang::list2(...)
6. ├─janitor::clean_names(.)
7. ├─tibble::as_tibble(.)
8. ├─dplyr::select(., -c(AIC, BIC, deviance, df.residual, logLik))
9. ├─dplyr::mutate_if(., is.numeric, round, digits = digits)
10. │ └─dplyr:::check_grouped(.tbl, "mutate", "if")
11. │ └─dplyr::is_grouped_df(tbl)
12. ├─generics::glance(.)
13. ├─broom:::glance.lm(.)
14. │ ├─base::with(...)
15. │ └─base::with.default(...)
16. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
17. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
18. │ └─tibble::tibble(...)
19. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
20. │ └─rlang::eval_tidy(xs[[j]], mask)
21. ├─stats::AIC(x)
22. └─stats:::AIC.default(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'moderndive.Rmd' failed with diagnostics:
could not find function "ll"
--- failed re-building 'moderndive.Rmd'
--- re-building 'paper.Rmd' using rmarkdown
Quitting from paper.Rmd:159-161 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `ll()`:
! could not find function "ll"
---
Backtrace:
▆
1. ├─moderndive::get_regression_summaries(score_model)
2. │ └─... %>% ...
3. ├─dplyr::select(., r_squared, adj_r_squared, mse, rmse, everything())
4. ├─dplyr::bind_cols(., mse_and_rmse)
5. │ └─rlang::list2(...)
6. ├─janitor::clean_names(.)
7. ├─tibble::as_tibble(.)
8. ├─dplyr::select(., -c(AIC, BIC, deviance, df.residual, logLik))
9. ├─dplyr::mutate_if(., is.numeric, round, digits = digits)
10. │ └─dplyr:::check_grouped(.tbl, "mutate", "if")
11. │ └─dplyr::is_grouped_df(tbl)
12. ├─generics::glance(.)
13. ├─broom:::glance.lm(.)
14. │ ├─base::with(...)
15. │ └─base::with.default(...)
16. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
17. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
18. │ └─tibble::tibble(...)
19. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
20. │ └─rlang::eval_tidy(xs[[j]], mask)
21. ├─stats::AIC(x)
22. └─stats:::AIC.default(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'paper.Rmd' failed with diagnostics:
could not find function "ll"
--- failed re-building 'paper.Rmd'
SUMMARY: processing the following files failed:
'moderndive.Rmd' 'paper.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [10s] OK
- DONE
Status: 3 ERRORs, 1 NOTE