- using R version 4.3.3 Patched (2024-02-29 r86109)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
gcc-13 (Debian 13.2.0-13) 13.2.0
GNU Fortran (Debian 13.2.0-13) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘feasts/DESCRIPTION’ ... OK
- this is package ‘feasts’ version ‘0.3.1’
- 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 ‘feasts’ 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 R 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 ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/3s] OK
- checking loading without being on the library search path ... [3s/3s] OK
- checking startup messages can be suppressed ... [3s/4s] 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 ... [21s/27s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [10s/12s] ERROR
Running examples in ‘feasts-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gg_season
> ### Title: Seasonal plot
> ### Aliases: gg_season
>
> ### ** Examples
>
> library(tsibble)
Attaching package: ‘tsibble’
The following objects are masked from ‘package:base’:
intersect, setdiff, union
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> tsibbledata::aus_retail %>%
+ filter(
+ State == "Victoria",
+ Industry == "Cafes, restaurants and catering services"
+ ) %>%
+ gg_season(Turnover)
Error in `ggplot2::scale_color_gradientn()`:
! `breaks` and `labels` have different lengths.
Backtrace:
▆
1. ├─base (local) `<fn>`(x)
2. └─ggplot2:::print.ggplot(x)
3. ├─ggplot2::ggplot_build(x)
4. └─ggplot2:::ggplot_build.ggplot(x)
5. └─plot$guides$build(npscales, plot$layers, plot$labels, data)
6. └─ggplot2 (local) build(..., self = self)
7. └─guides$train(scales, labels)
8. └─ggplot2 (local) train(..., self = self)
9. └─base::Map(...)
10. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
11. └─ggplot2 (local) `<fn>`(...)
12. └─guide$train(param, scale, aes, title = labels[[aes]])
13. └─ggplot2 (local) train(..., self = self)
14. ├─rlang::inject(self$extract_key(scale, !!!params))
15. └─self$extract_key(...)
16. └─ggplot2 (local) extract_key(...)
17. └─Guide$extract_key(scale, aesthetic, ...)
18. └─ggplot2 (local) extract_key(...)
19. └─scale$get_labels(breaks)
20. └─ggplot2 (local) get_labels(..., self = self)
21. └─cli::cli_abort(...)
22. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [51s/61s] ERROR
Running ‘testthat.R’ [51s/60s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(feasts)
Loading required package: fabletools
>
> test_check("feasts")
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 98 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-graphics.R:11:3'): gg_season() plots ───────────────────────────
Error in `ggplot2::scale_color_gradientn(colours = pal, breaks = if (num_ids <=
max_col_discrete) seq_len(num_ids) else ggplot2::waiver(),
labels = function(idx) levels(data$id)[idx])`: `breaks` and `labels` have different lengths.
Backtrace:
▆
1. ├─testthat::expect_equal(ggplot2::layer_data(p)$y, tsbl_co2$value) at test-graphics.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ggplot2::layer_data(p)
5. ├─ggplot2::ggplot_build(plot)
6. └─ggplot2:::ggplot_build.ggplot(plot)
7. └─plot$guides$build(npscales, plot$layers, plot$labels, data)
8. └─ggplot2 (local) build(..., self = self)
9. └─guides$train(scales, labels)
10. └─ggplot2 (local) train(..., self = self)
11. └─base::Map(...)
12. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
13. └─ggplot2 (local) `<fn>`(...)
14. └─guide$train(param, scale, aes, title = labels[[aes]])
15. └─ggplot2 (local) train(..., self = self)
16. ├─rlang::inject(self$extract_key(scale, !!!params))
17. └─self$extract_key(...)
18. └─ggplot2 (local) extract_key(...)
19. └─Guide$extract_key(scale, aesthetic, ...)
20. └─ggplot2 (local) extract_key(...)
21. └─scale$get_labels(breaks)
22. └─ggplot2 (local) get_labels(..., self = self)
23. └─cli::cli_abort(...)
24. └─rlang::abort(...)
── Error ('test-graphics.R:208:3'): gg_tsdisplay() plots ───────────────────────
Error in `ggplot2::scale_color_gradientn(colours = pal, breaks = if (num_ids <=
max_col_discrete) seq_len(num_ids) else ggplot2::waiver(),
labels = function(idx) levels(data$id)[idx])`: `breaks` and `labels` have different lengths.
Backtrace:
▆
1. ├─ggplot2::ggplot_build(p[[3]]) at test-graphics.R:208:3
2. └─ggplot2:::ggplot_build.ggplot(p[[3]])
3. └─plot$guides$build(npscales, plot$layers, plot$labels, data)
4. └─ggplot2 (local) build(..., self = self)
5. └─guides$train(scales, labels)
6. └─ggplot2 (local) train(..., self = self)
7. └─base::Map(...)
8. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
9. └─ggplot2 (local) `<fn>`(...)
10. └─guide$train(param, scale, aes, title = labels[[aes]])
11. └─ggplot2 (local) train(..., self = self)
12. ├─rlang::inject(self$extract_key(scale, !!!params))
13. └─self$extract_key(...)
14. └─ggplot2 (local) extract_key(...)
15. └─Guide$extract_key(scale, aesthetic, ...)
16. └─ggplot2 (local) extract_key(...)
17. └─scale$get_labels(breaks)
18. └─ggplot2 (local) get_labels(..., self = self)
19. └─cli::cli_abort(...)
20. └─rlang::abort(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 98 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [6s/8s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘feasts.Rmd’ using rmarkdown
Quitting from lines 49-51 [season-plot] (feasts.Rmd)
Error: processing vignette 'feasts.Rmd' failed with diagnostics:
`breaks` and `labels` have different lengths.
--- failed re-building ‘feasts.Rmd’
SUMMARY: processing the following file failed:
‘feasts.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [7s/11s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs