• using R version 4.6.0 (2026-04-24)
  • using platform: x86_64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.3.1
  • using session charset: UTF-8 * current time: 2026-04-30 23:17:53 UTC
  • checking for file ‘coursekata/DESCRIPTION’ ... OK
  • this is package ‘coursekata’ version ‘0.19.2’
  • 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 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 ... [8s/11s] OK See the install log for details.
  • 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 ... [3s/4s] OK
  • checking whether the package can be loaded with stated dependencies ... [3s/4s] OK
  • checking whether the package can be unloaded cleanly ... [3s/4s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
  • checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
  • checking loading without being on the library search path ... [3s/4s] OK
  • checking whether startup messages can be suppressed ... [3s/4s] 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 ... [3s/4s] OK
  • checking Rd files ... [1s/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 ... [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 ... [3s/4s] ERROR Running examples in ‘coursekata-Ex.R’ failed The error most likely occurred in: > ### 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 ... [40s/46s] OK   Running ‘testthat.R’ [40s/45s]
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [14s/22s] 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 ... [7s/10s] OK
  • DONE Status: 2 ERRORs
  • using check arguments '--no-clean-on-error '