Skip to content

Commit

Permalink
Removed startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
ellessenne committed May 25, 2024
1 parent 822f0b3 commit 9cdd5e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* Updated Swedish version of the Charlson comorbidity score according to the corrigendum published at: https://doi.org/10.2147/CLEP.S425901

* Removed startup message highlighting changes in the package API introduced with {comorbidity} 1.0.0.

* Updated hex sticker.

# comorbidity 1.0.7
Expand Down
16 changes: 8 additions & 8 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.onAttach <- function(libname, pkgname) {
tick <- stats::rbinom(n = 1, size = 1, prob = 0.05)
if (tick == 1) {
packageStartupMessage(paste0("This is {comorbidity} version ", utils::packageVersion("comorbidity"), "."))
packageStartupMessage("A lot has changed since the pre-1.0.0 release on CRAN, please check-out breaking changes here:")
packageStartupMessage("-> https://ellessenne.github.io/comorbidity/articles/C-changes.html")
}
}
# .onAttach <- function(libname, pkgname) {
# tick <- stats::rbinom(n = 1, size = 1, prob = 0.05)
# if (tick == 1) {
# packageStartupMessage(paste0("This is {comorbidity} version ", utils::packageVersion("comorbidity"), "."))
# packageStartupMessage("A lot has changed since the pre-1.0.0 release on CRAN, please check-out breaking changes here:")
# packageStartupMessage("-> https://ellessenne.github.io/comorbidity/articles/C-changes.html")
# }
# }

0 comments on commit 9cdd5e5

Please sign in to comment.