- using R Under development (unstable) (2026-04-08 r89818)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.8 (3+b1)
Debian flang version 21.1.8 (3+b1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-04-09 22:06:33 UTC
- checking for file ‘coursekata/DESCRIPTION’ ... OK
- this is package ‘coursekata’ version ‘0.19.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] 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 ‘coursekata’ can be installed ... OK
See the install log for details.
- 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 ... [4s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [4s/6s] OK
- checking whether startup messages can be suppressed ... [4s/5s] 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 ... [8s/12s] OK
- checking Rd files ... [1s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/6s] ERROR
Running examples in ‘coursekata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: middle
> ### Title: Find a percentage of a distribution
> ### Aliases: middle tails outer lower upper
>
> ### ** Examples
>
>
> upper(1:10, .1)
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
> lower(1:10, .2)
[1] TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> middle(1:10, .5)
[1] FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE
> tails(1:10, .5)
[1] TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE
>
> sampling_distribution <- do(1000) * mean(rnorm(100, 5, 10))
> sampling_distribution %>%
+ gf_histogram(~mean, data = sampling_distribution, fill = ~ middle(mean, .68)) %>%
+ gf_refine(scale_fill_manual(values = c("blue", "coral")))
Error:
! Problem while computing aesthetics.
ℹ Error occurred in the 1st layer.
Caused by error in `as.data.frame.default()`:
! cannot coerce class ‘"function"’ to a data.frame
Backtrace:
▆
1. ├─base (local) `<fn>`(x)
2. ├─ggformula:::print.gf_ggplot(x)
3. ├─base::NextMethod()
4. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
5. │ ├─ggplot2::ggplot_build(x)
6. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
7. │ └─ggplot2:::by_layer(...)
8. │ ├─rlang::try_fetch(...)
9. │ │ ├─base::tryCatch(...)
10. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ │ └─base::withCallingHandlers(...)
14. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
15. │ └─l$compute_aesthetics(d, plot)
16. │ └─ggplot2 (local) compute_aesthetics(..., self = self)
17. │ └─ggplot2:::eval_aesthetics(aesthetics, data)
18. │ └─base::lapply(aesthetics, eval_tidy, data = data, env = env)
19. │ └─rlang (local) FUN(X[[i]], ...)
20. ├─coursekata::middle(mean, 0.68)
21. │ └─coursekata::upper(x, tail_prop, !greedy)
22. │ └─base::data.frame(x = x, original_pos = seq_along(x))
23. │ ├─base::as.data.frame(x[[i]], optional = TRUE)
24. │ └─base::as.data.frame.default(x[[i]], optional = TRUE)
25. │ └─base::stop(...)
26. └─base::.handleSimpleError(...)
27. └─rlang (local) h(simpleError(msg, call))
28. └─handlers[[1L]](cnd)
29. └─cli::cli_abort(...)
30. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [63s/47s] OK
Running ‘testthat.R’ [63s/47s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/11s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘gf-squareplot.Rmd’ using rmarkdown
Quitting from gf-squareplot.Rmd:106-114 [dgp]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `gf_squareplot()`:
! `x` must be numeric.
---
Backtrace:
▆
1. └─coursekata::gf_squareplot(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'gf-squareplot.Rmd' failed with diagnostics:
`x` must be numeric.
--- failed re-building ‘gf-squareplot.Rmd’
SUMMARY: processing the following file failed:
‘gf-squareplot.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [3s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs