* using log directory 'd:/Rcompile/CRANpkg/local/4.6/dplyr.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 'dplyr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'dplyr' version '1.1.4' * 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 'dplyr' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.2.0' * 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 ... [16s] 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... NOTE File 'dplyr/libs/x64/dplyr.dll': Found non-API calls to R: 'LEVELS', 'OBJECT', 'PRVALUE', 'R_shallow_duplicate_attr', 'Rf_allocSExp', 'SET_PRCODE', 'SET_PRENV', 'SET_PRVALUE' Compiled code should not call non-API entry points in R. See 'Writing portable packages' in the 'Writing R Extensions' manual, and section 'Moving into C API compliance' for issues with the use of non-API entry points. * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [14s] ERROR Running examples in 'dplyr-Ex.R' failed The error most likely occurred in: > ### Name: nest_by > ### Title: Nest by one or more variables > ### Aliases: nest_by > ### Keywords: internal > > ### ** Examples > > # After nesting, you get one row per group > iris %>% nest_by(Species) # A tibble: 3 × 2 # Rowwise: Species Species data > 1 setosa [50 × 4] 2 versicolor [50 × 4] 3 virginica [50 × 4] > starwars %>% nest_by(species) # A tibble: 38 × 2 # Rowwise: species species data > 1 Aleena [1 × 13] 2 Besalisk [1 × 13] 3 Cerean [1 × 13] 4 Chagrian [1 × 13] 5 Clawdite [1 × 13] 6 Droid [6 × 13] 7 Dug [1 × 13] 8 Ewok [1 × 13] 9 Geonosian [1 × 13] 10 Gungan [3 × 13] # ℹ 28 more rows > > # The output is grouped by row, which makes modelling particularly easy > models <- mtcars %>% + nest_by(cyl) %>% + mutate(model = list(lm(mpg ~ wt, data = data))) > models # A tibble: 3 × 3 # Rowwise: cyl cyl data model > 1 4 [11 × 10] 2 6 [7 × 10] 3 8 [14 × 10] > > models %>% summarise(rsq = summary(model)$r.squared) `summarise()` has grouped output by 'cyl'. You can override using the `.groups` argument. # A tibble: 3 × 2 # Groups: cyl [3] cyl rsq 1 4 0.509 2 6 0.465 3 8 0.423 > ## Don't show: > if (requireNamespace("broom", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + + # This is particularly elegant with the broom functions + models %>% summarise(broom::glance(model)) + models %>% reframe(broom::tidy(model)) + ## Don't show: + }) # examplesIf > models %>% summarise(broom::glance(model)) Error in `summarise()`: ℹ In argument: `broom::glance(model)`. ℹ In row 1. Caused by error in `ll()`: ! could not find function "ll" Backtrace: ▆ 1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...) 2. │ └─base::source(...) 3. │ ├─base::withVisible(eval(ei, envir)) 4. │ └─base::eval(ei, envir) 5. │ └─base::eval(ei, envir) 6. ├─models %>% summarise(broom::glance(model)) 7. ├─dplyr::summarise(., broom::glance(model)) 8. ├─dplyr:::summarise.rowwise_df(., broom::glance(model)) 9. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 10. │ ├─base::withCallingHandlers(...) 11. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 12. │ └─base::lapply(.x, .f, ...) 13. │ └─dplyr (local) FUN(X[[i]], ...) 14. │ └─mask$eval_all_summarise(quo) 15. │ └─dplyr (local) eval() 16. ├─broom::glance(model) 17. ├─broom:::glance.lm(model) 18. │ ├─base::with(...) 19. │ └─base::with.default(...) 20. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 21. │ └─base::eval(substitute(expr), data, enclos = parent.frame()) 22. │ └─tibble::tibble(...) 23. │ └─tibble:::tibble_quos(xs, .rows, .name_repair) 24. │ └─rlang::eval_tidy(xs[[j]], mask) 25. ├─stats::AIC(x) 26. ├─stats:::AIC.default(x) 27. └─base::.handleSimpleError(...) 28. └─dplyr (local) h(simpleError(msg, call)) 29. └─dplyr (local) handler(cnd) 30. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [98s] OK Running 'testthat.R' [98s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [40s] ERROR Error(s) in re-building vignettes: --- re-building 'base.Rmd' using rmarkdown --- finished re-building 'base.Rmd' --- re-building 'colwise.Rmd' using rmarkdown --- finished re-building 'colwise.Rmd' --- re-building 'dplyr.Rmd' using rmarkdown --- finished re-building 'dplyr.Rmd' --- re-building 'grouping.Rmd' using rmarkdown --- finished re-building 'grouping.Rmd' --- re-building 'in-packages.Rmd' using rmarkdown --- finished re-building 'in-packages.Rmd' --- re-building 'programming.Rmd' using rmarkdown --- finished re-building 'programming.Rmd' --- re-building 'rowwise.Rmd' using rmarkdown Quitting from rowwise.Rmd:252-256 [unnamed-chunk-25] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NULL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'rowwise.Rmd' failed with diagnostics: ℹ In argument: `broom::glance(mod)`. ℹ In row 1. Caused by error in `ll()`: ! could not find function "ll" --- failed re-building 'rowwise.Rmd' --- re-building 'two-table.Rmd' using rmarkdown --- finished re-building 'two-table.Rmd' --- re-building 'window-functions.Rmd' using rmarkdown --- finished re-building 'window-functions.Rmd' SUMMARY: processing the following file failed: 'rowwise.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [27s] OK * checking HTML version of manual ... [22s] OK * DONE Status: 2 ERRORs, 1 NOTE