Skip to content

Commit

Permalink
Update startup check for PmetricsLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
mnneely committed May 13, 2024
1 parent e4e4193 commit cfa6010
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@
}

# check for PmetricsData
if (!suppressWarnings(suppressMessages(requireNamespace("PmetricsData")))) {
packageStartupMessage(paste0(crayon::green("Important: "), "PmetricsData package required for examples. Run remotes::install_github('LAPKB/PmetricsData') to install.\n"))
if (!requireNamespace("PmetricsData", quietly = TRUE)) {
packageStartupMessage(paste0(crayon::green("Important: "),
"PmetricsData package required for examples and PMtest().\n",
"Run remotes::install_github('LAPKB/PmetricsData') to install.\n"))
}

# set user options for the session
Expand Down

0 comments on commit cfa6010

Please sign in to comment.