From cfa6010ccf4996b7b2bef1a5d96145096cc4c709 Mon Sep 17 00:00:00 2001 From: Michael Neely Date: Mon, 13 May 2024 08:27:17 +0100 Subject: [PATCH] Update startup check for PmetricsLibrary --- R/zzz.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/zzz.R b/R/zzz.R index 4bab69f2..d0ce5199 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -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