Skip to content

Commit

Permalink
Hide startup messages from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaimemosg committed May 27, 2023
1 parent 24ba492 commit 8e4a8d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ Authors@R: c(
person("Freddy", "Hernandez", , "fhernanb@unal.edu.co", role = c("ctb"),
comment = c(ORCID = "0000-0001-7459-3329"))
)
Depends: R (>= 3.5.0), survival, DEoptim, BBmisc, GA
Depends: R (>= 3.5.0), survival
Imports:
DEoptim,
BBmisc,
GA,
Rdpack,
utils,
stats,
Expand Down
6 changes: 5 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.onAttach <- function(libname, pkgname){
initmessage1 <- "\n\n><<<<<<<<<<<<<<<<<<<<<<<< EstimationTools Version "
invisible(suppressPackageStartupMessages(
sapply(c("GA", "DEoptim", "BBmisc", "survival"),
requireNamespace, quietly = TRUE)
))
initmessage1 <- "\n><<<<<<<<<<<<<<<<<<<<<<<< EstimationTools Version "
initmessage2 <- utils::packageDescription("EstimationTools")$Version
initmessage3 <- " >>>>>>>>>>>>>>>>>>>>>>>><
Feel free to report bugs in https://github.com/Jaimemosg/EstimationTools/issues"
Expand Down

0 comments on commit 8e4a8d7

Please sign in to comment.