Skip to content

Commit

Permalink
add version note
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 5, 2024
1 parent 4c8b9a1 commit 5487d22
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,29 @@ library(magrittr)
library(data.table)
library(ggplot2)
library(knitr)
## code to determine version inspired by [pkgdown:::dev_mode_auto()]
version <- packageVersion("scoringutils")
devel <- length(unclass(package_version(version))[[1]]) > 3
```

```{r warn_dev, results='asis'}
if (devel)) {
cat(
"This documentation refers to the development version of scoringutils.",
"For the latest CRAN release please refer to the ",
"[documentation of the stable version]",
"(https://epiforecasts.io/scoringutils)."
)
} else {
cat(
"This documentation refers to the RAN version of scoringutils.",
"For the version on GitHub please refer to the ",
"[documentation of the development version]",
"(https://epiforecasts.io/scoringutils/dev)."
)
}
cat("\n\n")
```

The `scoringutils` package provides a collection of metrics and proper scoring rules and aims to make it simple to score probabilistic forecasts against the true observed values.
Expand Down

0 comments on commit 5487d22

Please sign in to comment.