diff --git a/R/z-packageStartupMessage.R b/R/z-packageStartupMessage.R new file mode 100644 index 000000000..aee2941d6 --- /dev/null +++ b/R/z-packageStartupMessage.R @@ -0,0 +1,14 @@ +# nocov start +#' @importFrom cli cli_inform +.onAttach <- function(libname, pkgname) { + cli_inform( + "scoringutils 2.0.0 introduces major changes. We'd love your feedback! + {.url https://github.com/epiforecasts/scoringutils/issues}. + To use the old version, run: + {.code remotes::install_github('epiforecasts/scoringutils@v1.2.2')}", + .frequency = "once", + .frequency_id = "enw_startup_message", + class = "packageStartupMessage" + ) +} +# nocov end diff --git a/R/zzz.R b/R/zzz.R deleted file mode 100644 index 1c6f431e7..000000000 --- a/R/zzz.R +++ /dev/null @@ -1,9 +0,0 @@ -.onAttach <- function(libname, pkgname) { - packageStartupMessage( - "Note: scoringutils is currently undergoing major development changes ", - "(with an update planned for the first quarter of 2024). We would very ", - "much appreciate your opinions and feedback on what should be included in ", - "this major update: ", - "https://github.com/epiforecasts/scoringutils/discussions/333" - ) -}