Skip to content

Commit

Permalink
fix Note on CRAN about too many threads used by scoringutils
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed Nov 29, 2023
1 parent 3db7de1 commit cf7ef28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
^\.devcontainer$
^CODE_OF_CONDUCT\.md$
^inst/manuscript/output$
^CRAN-SUBMISSION$
1 change: 1 addition & 0 deletions R/summarise_scores.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ check_summary_params <- function(scores,
#' summary is present according to the value specified in `by`.
#' @examples
#' library(magrittr) # pipe operator
#' data.table::setDTthreads(1) # only needed to avoid issues on CRAN
#' score(example_quantile) %>%
#' add_coverage(by = c("model", "target_type")) %>%
#' summarise_scores(by = c("model", "target_type")) %>%
Expand Down
1 change: 1 addition & 0 deletions man/add_coverage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# load common required test packages
library(ggplot2, quietly = TRUE)
suppressMessages(library(magrittr))
data.table::setDTthreads(1) # only needed to avoid issues on CRAN

# compute quantile scores
scores <- suppressMessages(score(example_quantile))
scores <- suppressMessages(score(example_quantile))
1 change: 1 addition & 0 deletions vignettes/scoringutils.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ library(magrittr)
library(data.table)
library(ggplot2)
library(knitr)
data.table::setDTthreads(1) # only needed to avoid issues on CRAN
```

The `scoringutils` package provides a collection of metrics and proper scoring rules that make it simple to score probabilistic forecasts against the true observed values. You can find more information in the paper [Evaluating Forecasts with scoringutils in R](https://arxiv.org/abs/2205.07090) as well as the [Metrics-Vignette](https://epiforecasts.io/scoringutils/articles/metric-details.html) and the [Scoring forecasts directly Vignette](https://epiforecasts.io/scoringutils/articles/scoring-forecasts-directly.html).
Expand Down

0 comments on commit cf7ef28

Please sign in to comment.