CRAN Package Check Results for Package gghdr

Last updated on 2024-03-26 08:53:28 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.0 7.68 62.12 69.80 ERROR
r-devel-linux-x86_64-debian-gcc 0.2.0 5.04 46.64 51.68 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.0 84.23 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.0 93.95 ERROR
r-devel-windows-x86_64 0.2.0 7.00 68.00 75.00 ERROR
r-patched-linux-x86_64 0.2.0 4.81 58.26 63.07 ERROR
r-release-linux-x86_64 0.2.0 4.73 57.76 62.49 ERROR
r-release-macos-arm64 0.2.0 40.00 OK
r-release-macos-x86_64 0.2.0 69.00 OK
r-release-windows-x86_64 0.2.0 9.00 73.00 82.00 ERROR
r-oldrel-macos-arm64 0.2.0 44.00 OK
r-oldrel-windows-x86_64 0.2.0 9.00 77.00 86.00 ERROR

Check Details

Version: 0.2.0
Check: examples
Result: ERROR Running examples in ‘gghdr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: geom_hdr_boxplot > ### Title: Box plot for the highest density region > ### Aliases: geom_hdr_boxplot > > ### ** Examples > > library(ggplot2) > > ggplot(faithful, aes(y = eruptions)) + + geom_hdr_boxplot() Warning: The dot-dot notation (`..prob..`) was deprecated in ggplot2 3.4.0. ℹ Please use `after_stat(prob)` instead. Warning: The following aesthetics were dropped during statistical transformation: y. ℹ This can happen when ggplot fails to infer the correct grouping structure in the data. ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into a factor? Warning: The `scale_name` argument of `discrete_scale()` is deprecated as of ggplot2 3.5.0. Warning: The S3 guide system was deprecated in ggplot2 3.5.0. ℹ It has been replaced by a ggproto system that can be extended. Error in if (guide$reverse) { : argument is of length zero Calls: <Anonymous> ... <Anonymous> -> train -> guide_train -> guide_train.prob_guide 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.2.0
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [5s/6s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gghdr) > library(ggplot2) > library(vdiffr) > > test_check("gghdr") [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-hdr_bin.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-draw_key_hdr_boxplot.R:11:3'): alternative key glyphs work ───── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr key glyphs", hdr_boxplot) at test-draw_key_hdr_boxplot.R:11:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-geom-hdr-rug.R:9:3'): hdr rug plot draws correctly ───────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr rugplot", hdr_rugplot) at test-geom-hdr-rug.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-hdr-boxplot.R:9:3'): hdr box plot draws correctly ────────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr boxplot", hdr_boxplot) at test-hdr-boxplot.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.2.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘gghdr.Rmd’ using rmarkdown Quitting from lines 93-98 [setup] (gghdr.Rmd) Error: processing vignette 'gghdr.Rmd' failed with diagnostics: argument is of length zero --- failed re-building ‘gghdr.Rmd’ SUMMARY: processing the following file failed: ‘gghdr.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.2.0
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/1s] Running ‘testthat.R’ [4s/6s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gghdr) > library(ggplot2) > library(vdiffr) > > test_check("gghdr") [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-hdr_bin.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-draw_key_hdr_boxplot.R:11:3'): alternative key glyphs work ───── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr key glyphs", hdr_boxplot) at test-draw_key_hdr_boxplot.R:11:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-geom-hdr-rug.R:9:3'): hdr rug plot draws correctly ───────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr rugplot", hdr_rugplot) at test-geom-hdr-rug.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-hdr-boxplot.R:9:3'): hdr box plot draws correctly ────────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr boxplot", hdr_boxplot) at test-hdr-boxplot.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.0
Check: Rd cross-references
Result: NOTE Undeclared package ‘rlang’ in Rd xrefs Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.0
Check: examples
Result: ERROR Running examples in ‘gghdr-Ex.R’ failed The error most likely occurred in: > ### Name: geom_hdr_boxplot > ### Title: Box plot for the highest density region > ### Aliases: geom_hdr_boxplot > > ### ** Examples > > library(ggplot2) > > ggplot(faithful, aes(y = eruptions)) + + geom_hdr_boxplot() Warning: The dot-dot notation (`..prob..`) was deprecated in ggplot2 3.4.0. ℹ Please use `after_stat(prob)` instead. Warning: The following aesthetics were dropped during statistical transformation: y. ℹ This can happen when ggplot fails to infer the correct grouping structure in the data. ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into a factor? Warning: The `scale_name` argument of `discrete_scale()` is deprecated as of ggplot2 3.5.0. Warning: The S3 guide system was deprecated in ggplot2 3.5.0. ℹ It has been replaced by a ggproto system that can be extended. Error in if (guide$reverse) { : argument is of length zero Calls: <Anonymous> ... <Anonymous> -> train -> guide_train -> guide_train.prob_guide 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.2.0
Check: tests
Result: ERROR Running ‘spelling.R’ Running ‘testthat.R’ Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gghdr) > library(ggplot2) > library(vdiffr) > > test_check("gghdr") [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-hdr_bin.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-draw_key_hdr_boxplot.R:11:3'): alternative key glyphs work ───── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr key glyphs", hdr_boxplot) at test-draw_key_hdr_boxplot.R:11:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-geom-hdr-rug.R:9:3'): hdr rug plot draws correctly ───────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr rugplot", hdr_rugplot) at test-geom-hdr-rug.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-hdr-boxplot.R:9:3'): hdr box plot draws correctly ────────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr boxplot", hdr_boxplot) at test-hdr-boxplot.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] Error: Test failures Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘gghdr.Rmd’ using rmarkdown Quitting from lines 93-98 [setup] (gghdr.Rmd) Error: processing vignette 'gghdr.Rmd' failed with diagnostics: argument is of length zero --- failed re-building ‘gghdr.Rmd’ SUMMARY: processing the following file failed: ‘gghdr.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.2.0
Check: tests
Result: ERROR Running 'spelling.R' [0s] Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(gghdr) > library(ggplot2) > library(vdiffr) > > test_check("gghdr") [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-hdr_bin.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-draw_key_hdr_boxplot.R:11:3'): alternative key glyphs work ───── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr key glyphs", hdr_boxplot) at test-draw_key_hdr_boxplot.R:11:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-geom-hdr-rug.R:9:3'): hdr rug plot draws correctly ───────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr rugplot", hdr_rugplot) at test-geom-hdr-rug.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-hdr-boxplot.R:9:3'): hdr box plot draws correctly ────────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr boxplot", hdr_boxplot) at test-hdr-boxplot.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] Error: Test failures Execution halted Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.2.0
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/1s] Running ‘testthat.R’ [5s/6s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gghdr) > library(ggplot2) > library(vdiffr) > > test_check("gghdr") [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-hdr_bin.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-draw_key_hdr_boxplot.R:11:3'): alternative key glyphs work ───── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr key glyphs", hdr_boxplot) at test-draw_key_hdr_boxplot.R:11:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-geom-hdr-rug.R:9:3'): hdr rug plot draws correctly ───────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr rugplot", hdr_rugplot) at test-geom-hdr-rug.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) ── Error ('test-hdr-boxplot.R:9:3'): hdr box plot draws correctly ────────────── Error in `if (guide$reverse) { key <- key[nrow(key):1, ] }`: argument is of length zero Backtrace: ▆ 1. └─vdiffr::expect_doppelganger("hdr boxplot", hdr_boxplot) at test-hdr-boxplot.R:9:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.ggplot(plot, title) 5. ├─base::print(p) 6. └─ggplot2:::print.ggplot(p) 7. ├─ggplot2::ggplot_build(x) 8. └─ggplot2:::ggplot_build.ggplot(x) 9. └─plot$guides$build(npscales, plot$layers, plot$labels, data) 10. └─ggplot2 (local) build(..., self = self) 11. └─guides$train(scales, labels) 12. └─ggplot2 (local) train(..., self = self) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─ggplot2 (local) `<fn>`(...) 16. └─guide$train(param, scale, aes, title = labels[[aes]]) 17. └─ggplot2 (local) train(..., self = self) 18. ├─ggplot2::guide_train(params, scale, aesthetic) 19. └─gghdr:::guide_train.prob_guide(params, scale, aesthetic) [ FAIL 3 | WARN 6 | SKIP 1 | PASS 8 ] Error: Test failures Execution halted Flavors: r-patched-linux-x86_64, r-release-linux-x86_64