CRAN Package Check Results for Package coursekata

Last updated on 2026-04-30 11:56:52 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.19.2 11.87 163.53 175.40 ERROR
r-devel-linux-x86_64-debian-gcc 0.19.2 7.15 107.77 114.92 ERROR
r-devel-linux-x86_64-fedora-clang 0.19.2 18.00 238.71 256.71 ERROR
r-devel-linux-x86_64-fedora-gcc 0.19.2 17.00 231.83 248.83 ERROR
r-devel-windows-x86_64 0.19.2 14.00 123.00 137.00 ERROR
r-patched-linux-x86_64 0.19.2 9.44 143.69 153.13 ERROR
r-release-linux-x86_64 0.19.2 9.12 144.00 153.12 ERROR
r-release-macos-arm64 0.19.2 3.00 38.00 41.00 OK
r-release-macos-x86_64 0.19.2 7.00 ERROR
r-release-windows-x86_64 0.19.2 14.00 140.00 154.00 ERROR
r-oldrel-macos-arm64 0.19.2 3.00 38.00 41.00 OK
r-oldrel-macos-x86_64 0.19.2 8.00 145.00 153.00 OK
r-oldrel-windows-x86_64 0.19.2 21.00 184.00 205.00 ERROR

Check Details

Version: 0.19.2
Check: examples
Result: 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 Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.19.2
Check: re-building of vignette outputs
Result: 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 Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.19.2
Check: examples
Result: 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 Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.19.2
Check: re-building of vignette outputs
Result: 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 Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.19.2
Check: tests
Result: ERROR Running 'testthat.R' [14s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(coursekata) ── CourseKata packages ──────────────────────────────────── coursekata 0.19.2 ── ✔ dslabs 0.9.1 ✔ Metrics 0.1.4 x Lock5withR ✔ lsr 0.5.2 x fivethirtyeightdata ✔ mosaic 1.9.2 ✔ fivethirtyeight 0.6.2 ✔ supernova 3.0.2 ── Conflicts ─────────────────────────────────────────── coursekata conflicts ── ✖ coursekata::penguins masks datasets::penguins ✖ coursekata::outer() masks base::outer() > > test_check("coursekata") Starting 2 test processes. > test-show_cutoffs.R: Error: ! testthat subprocess exited in file 'test-show_cutoffs.R'. Caused by error: ! R session crashed with exit code -1073741819 Backtrace: ▆ 1. └─testthat::test_check("coursekata") 2. └─testthat::test_dir(...) 3. └─testthat:::test_files(...) 4. └─testthat:::test_files_parallel(...) 5. ├─withr::with_dir(...) 6. │ └─base::force(code) 7. ├─testthat::with_reporter(...) 8. │ └─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─testthat:::parallel_event_loop_chunky(queue, reporters, ".") 13. └─queue$poll(Inf) 14. └─base::lapply(...) 15. └─testthat (local) FUN(X[[i]], ...) 16. └─private$handle_error(msg, i) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) Execution halted Flavor: r-devel-windows-x86_64

Version: 0.19.2
Check: package dependencies
Result: ERROR Packages required but not available: 'ggformula', 'mosaic' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavor: r-release-macos-x86_64