- using R Under development (unstable) (2025-09-03 r88788)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (3+b2)
Debian flang-new version 19.1.7 (3+b2)
- running under: Debian GNU/Linux forky/sid
- 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 CRAN incoming feasibility ... [4s/5s] OK
- 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 ‘dplyr’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 19.1.7 (3+b2)’
- checking package directory ... OK
- checking for future file timestamps ... 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/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/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 ... [33s/43s] OK
- checking Rd files ... [3s/4s] 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 ... [0s/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 compilation flags used ... OK
- checking compiled code ... NOTE
File ‘dplyr/libs/dplyr.so’:
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/18s] ERROR
Running examples in ‘dplyr-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
<fct> <list<tibble[,4]>>
1 setosa [50 × 4]
2 versicolor [50 × 4]
3 virginica [50 × 4]
> starwars %>% nest_by(species)
# A tibble: 38 × 2
# Rowwise: species
species data
<chr> <list<tibble[,13]>>
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
<dbl> <list<tibble[,10]>> <list>
1 4 [11 × 10] <lm>
2 6 [7 × 10] <lm>
3 8 [14 × 10] <lm>
>
> 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
<dbl> <dbl>
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 ... [126s/171s] OK
Running ‘testthat.R’ [126s/171s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [44s/65s] 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 ... [16s/20s] OK
- checking HTML version of manual ... [7s/13s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE