- using R Under development (unstable) (2025-12-23 r89222)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘scoringutils/DESCRIPTION’ ... OK
- this is package ‘scoringutils’ version ‘2.1.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [3s/3s] 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 ‘scoringutils’ 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [10s/12s] 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 ... [1s/1s] 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 ... [2s/2s] ERROR
Running examples in ‘scoringutils-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: as_forecast_binary
> ### Title: Create a 'forecast' object for binary forecasts
> ### Aliases: as_forecast_binary as_forecast_binary.default
> ### Keywords: as_forecast transform
>
> ### ** Examples
>
> as_forecast_binary(
+ example_binary,
+ predicted = "predicted",
+ forecast_unit = c("model", "target_type", "target_end_date",
+ "horizon", "location")
+ )
Warning: ! Error in validating forecast object: Error in `[.data.table`(data, ,
`:=`(scoringutils_InternalDuplicateCheck, : attempt access index 7/7 in
VECTOR_ELT .
ℹ Note this error is sometimes related to `data.table`s `print`. Run
`assert_forecast()` (`?scoringutils::assert_forecast()`) to confirm.
Error in `[.data.table`(data, , `:=`(scoringutils_InternalDuplicateCheck, :
attempt access index 7/7 in VECTOR_ELT
Calls: as_forecast_binary ... check_duplicates -> get_duplicate_forecasts -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/3s] ERROR
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(scoringutils)
>
> test_check("scoringutils")
Error in `source_dir()`:
! Failed to evaluate './setup.R'.
Caused by error in `[.data.table`:
! attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::test_check("scoringutils")
2. │ └─testthat::test_dir(...)
3. │ └─testthat:::test_files(...)
4. │ └─testthat:::test_files_serial(...)
5. │ └─testthat:::test_files_setup_state(...)
6. │ └─testthat::source_test_setup(".", env)
7. │ └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
8. │ └─base::lapply(...)
9. │ └─testthat (local) FUN(X[[i]], ...)
10. │ └─testthat::source_file(...)
11. │ ├─base::withCallingHandlers(...)
12. │ └─base::eval(exprs, env)
13. │ └─base::eval(exprs, env)
14. │ ├─scoringutils::score(example_quantile) at ./setup.R:18:1
15. │ └─scoringutils:::score.forecast_quantile(example_quantile)
16. │ └─scoringutils:::clean_forecast(forecast, copy = TRUE, na.omit = TRUE)
17. │ ├─scoringutils::assert_forecast(forecast, verbose = FALSE)
18. │ └─scoringutils:::assert_forecast.forecast_quantile(forecast, verbose = FALSE)
19. │ └─scoringutils:::assert_forecast_generic(forecast, verbose)
20. │ ├─checkmate::assert(check_duplicates(data))
21. │ │ └─base::eval(dots[[i]], envir = env)
22. │ │ └─base::eval(dots[[i]], envir = env)
23. │ └─scoringutils:::check_duplicates(data)
24. │ └─scoringutils::get_duplicate_forecasts(data)
25. │ ├─...[]
26. │ └─data.table:::`[.data.table`(...)
27. └─base::.handleSimpleError(...)
28. └─testthat (local) h(simpleError(msg, call))
29. └─cli::cli_abort(...)
30. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [11s/15s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘Deprecated-functions.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Deprecated-functions.Rmd’
--- re-building ‘Deprecated-visualisations.Rmd’ using rmarkdown
Quitting from Deprecated-visualisations.Rmd:317-331 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 10/10 in VECTOR_ELT
---
Backtrace:
▆
1. ├─... %>% ...
2. └─global plot_predictions(...)
3. ├─scoringutils:::sample_to_interval_long(...)
4. │ └─scoringutils:::ensure_data.table(data)
5. │ └─data.table::is.data.table(data)
6. ├─scoringutils::as_forecast_sample(forecasts)
7. └─scoringutils:::as_forecast_sample.default(forecasts)
8. ├─scoringutils::assert_forecast(data)
9. └─scoringutils:::assert_forecast.forecast_sample(data)
10. └─scoringutils:::assert_forecast_generic(forecast, verbose)
11. ├─checkmate::assert(check_duplicates(data))
12. │ └─base::eval(dots[[i]], envir = env)
13. │ └─base::eval(dots[[i]], envir = env)
14. └─scoringutils:::check_duplicates(data)
15. └─scoringutils::get_duplicate_forecasts(data)
16. ├─...[]
17. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Deprecated-visualisations.Rmd' failed with diagnostics:
attempt access index 10/10 in VECTOR_ELT
--- failed re-building ‘Deprecated-visualisations.Rmd’
--- re-building ‘scoring-rules.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘scoring-rules.Rmd’
SUMMARY: processing the following file failed:
‘Deprecated-visualisations.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [10s/13s] OK
- checking HTML version of manual ... [6s/9s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs