- using R Under development (unstable) (2025-09-10 r88809)
- 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 ‘coursekata/DESCRIPTION’ ... OK
- this is package ‘coursekata’ version ‘0.19.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] 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 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/6s] 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 ... [4s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/5s] OK
- checking loading without being on the library search path ... [4s/5s] 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 ... [19s/26s] 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 examples ... [6s/9s] ERROR
Running examples in ‘coursekata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: theme_coursekata
> ### Title: A simple theme built on top of 'ggplot2::theme_bw'
> ### Aliases: theme_coursekata
>
> ### ** Examples
>
> gf_boxplot(Thumb ~ RaceEthnic, data = Fingers, fill = ~RaceEthnic)
Error in `position_dodge()`:
! `orientation` must be a string or character vector.
Backtrace:
▆
1. ├─ggformula::gf_boxplot(Thumb ~ RaceEthnic, data = Fingers, fill = ~RaceEthnic)
2. │ ├─base::do.call(position_fun, pdots)
3. │ └─ggplot2::position_dodge(orientation = NA)
4. │ ├─ggplot2::ggproto(...)
5. │ │ └─rlang::list2(...)
6. │ └─rlang::arg_match0(orientation, c("x", "y"))
7. └─rlang::abort(message = message, call = call)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [34s/28s] ERROR
Running ‘testthat.R’ [34s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(coursekata)
Loading required package: dslabs
Loading required package: fivethirtyeight
Some larger datasets need to be installed separately, like senators and
house_district_forecast. To install these, we recommend you install the
fivethirtyeightdata package by running:
install.packages('fivethirtyeightdata', repos =
'https://fivethirtyeightdata.github.io/drat/', type = 'source')
Loading required package: Metrics
Loading required package: lsr
Loading required package: mosaic
The 'mosaic' package masks several functions from core packages in order to add
additional features. The original behavior of these functions should not be affected by this.
Attaching package: 'mosaic'
The following objects are masked from 'package:dplyr':
count, do, tally
The following object is masked from 'package:Matrix':
mean
The following object is masked from 'package:ggplot2':
stat
The following object is masked from 'package:testthat':
compare
The following objects are masked from 'package:stats':
IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
quantile, sd, t.test, var
The following objects are masked from 'package:base':
max, mean, min, prod, range, sample, sum
Loading required package: supernova
── CourseKata packages ──────────────────────────────────── coursekata 0.19.0 ──
✔ dslabs 0.8.0 ✔ Metrics 0.1.4
x Lock5withR ✔ lsr 0.5.2
x fivethirtyeightdata ✔ mosaic 1.9.2
✔ fivethirtyeight 0.6.2 ✔ supernova 3.0.0
Attaching package: 'coursekata'
The following object is masked from 'package:datasets':
penguins
>
> test_check("coursekata")
Starting 2 test processes
[ FAIL 1 | WARN 0 | SKIP 30 | PASS 89 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-gf_model-visual.R:6:3', 'test-gf_model-visual.R:27:5',
'test-gf_model-visual.R:46:3', 'test-gf_model-visual.R:63:5',
'test-gf_model-visual.R:107:5', 'test-gf_model-visual.R:123:5',
'test-gf_model-visual.R:144:5', 'test-gf_model-visual.R:171:5',
'test-gf_model-visual.R:201:5', 'test-gf_model-visual.R:239:5',
'test-gf_model-visual.R:261:3', 'test-gf_model-visual.R:276:3',
'test-gf_model-visual.R:291:3', 'test-gf_model-visual.R:299:3',
'test-gf_model-visual.R:307:3', 'test-gf_model-visual.R:315:3',
'test-gf_model-visual.R:323:3', 'test-gf_model-visual.R:331:3',
'test-gf_model-visual.R:343:3', 'test-gf_model-visual.R:351:3',
'test-gf_model-visual.R:362:3', 'test-gf_model-visual.R:370:3',
'test-gf_model-visual.R:378:3', 'test-gf_model-visual.R:386:3',
'test-gf_model-visual.R:407:3', 'test-gf_model-visual.R:415:3',
'test-gf_model-visual.R:431:3', 'test-gf_model-visual.R:439:3',
'test-gf_model-visual.R:451:3', 'test-gf_model-visual.R:465:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-gf_model-visual.R:423:3'): it will translate color arguments if applicable (e.g. fill to color) ──
Error in `position_dodge(orientation = NA)`: `orientation` must be a string or character vector.
Backtrace:
▆
1. ├─... %>% ... at test-gf_model-visual.R:423:3
2. ├─coursekata:::expect_doppelganger(., "[gf_point] cond. mod., y on Y, with color")
3. │ └─vdiffr::expect_doppelganger(title, fig, ...) at tests/testthat/helper-vdiffr.R:5:5
4. │ └─vdiffr (local) writer(fig, testcase, title)
5. │ └─vdiffr:::print_plot(plot, title)
6. ├─coursekata::gf_model(., lm(later_anxiety ~ condition, data = er))
7. ├─ggformula::gf_boxplot(...)
8. │ ├─base::do.call(position_fun, pdots)
9. │ └─ggplot2::position_dodge(orientation = NA)
10. │ ├─ggplot2::ggproto(...)
11. │ │ └─rlang::list2(...)
12. │ └─rlang::arg_match0(orientation, c("x", "y"))
13. └─rlang::abort(message = message, call = call)
[ FAIL 1 | WARN 0 | SKIP 30 | PASS 89 ]
Deleting unused snapshots:
• gf_model-visual/gf-boxplot-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-boxplot-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-boxplot-cond-mod-y-on-y-pred-on-color.svg
• gf_model-visual/gf-boxplot-cond-mod-y-on-y-pred-on-facet.svg
• gf_model-visual/gf-boxplot-cond-mod-y-on-y.svg
• gf_model-visual/gf-boxplot-null-mod-y-on-x.svg
• gf_model-visual/gf-boxplot-null-mod-y-on-y.svg
• gf_model-visual/gf-dens-null-mod-y-on-x.svg
• gf_model-visual/gf-density-null-mod-y-on-x.svg
• gf_model-visual/gf-dhistogram-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-dhistogram-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-dhistogram-null-mod-y-on-x.svg
• gf_model-visual/gf-freqpoly-null-mod-y-on-x.svg
• gf_model-visual/gf-histogram-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-histogram-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-point-anx-mod-pred-on-color-y-on-x.svg
• gf_model-visual/gf-point-anx-mod-y-on-x.svg
• gf_model-visual/gf-point-diverging-lines-in-2-colors-flipped.svg
• gf_model-visual/gf-point-diverging-lines-in-facets-flipped.svg
• gf_model-visual/gf-rug-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-rug-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-rug-null-mod-y-on-x.svg
• gf_model-visual/gf-rugx-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-rugx-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-rugx-null-mod-y-on-x.svg
• gf_model-visual/gf-rugy-cond-mod-y-on-y-pred-on-color.svg
• gf_model-visual/gf-rugy-cond-mod-y-on-y-pred-on-facet.svg
• gf_model-visual/gf-violin-cond-mod-y-on-x-pred-on-color.svg
• gf_model-visual/gf-violin-cond-mod-y-on-x-pred-on-facet.svg
• gf_model-visual/gf-violin-cond-mod-y-on-y-pred-on-color.svg
• gf_model-visual/gf-violin-cond-mod-y-on-y-pred-on-facet.svg
• gf_model-visual/gf-violin-cond-mod-y-on-y.svg
• gf_model-visual/gf-violin-horizontal-null-mod-y-on-x.svg
• gf_model-visual/gf-violin-null-mod-y-on-x-2.svg
• gf_model-visual/gf-violin-null-mod-y-on-y.svg
Error: Test failures
Execution halted
- checking PDF version of manual ... [7s/10s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs