From c082f203523008b5cbe012cfb09531f5ee81d55c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 17 Sep 2026 11:59:51 +0000 Subject: [PATCH] Fix R CMD check WARNING from parFlags deprecation example parFlags() is deprecated in favor of parFlags2(), but its own @examples called itself, triggering a deprecation warning during R CMD check (error-on: "warning" fails the build on any warning). Confirmed locally with R CMD check --as-cran: the example produced "Warning: 'parFlags' is deprecated" under "checking examples". Wrap the example in \dontrun{} so it documents usage without executing the deprecated call, same fix as ifExistsElse() in #71. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA --- R/Stringendo.R | 5 ++++- man/parFlags.Rd | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/R/Stringendo.R b/R/Stringendo.R index f3b46ea..5499d70 100644 --- a/R/Stringendo.R +++ b/R/Stringendo.R @@ -1589,11 +1589,14 @@ param.list.flag <- function(par) { #' @param prefix Append something before? #' @param pasteflg Boolean: paste the parameters-flags together? #' @param collapsechar Separating character between each parameters-flag -#' @examples pearson <- TRUE +#' @examples +#' \dontrun{ +#' pearson <- TRUE #' filtered <- TRUE #' normalized <- FALSE #' MyPlotname <- parFlags(prefix = "MyPlot", pearson, filtered, normalized) #' MyPlotname +#' } #' #' @export parFlags <- function(prefix = "", diff --git a/man/parFlags.Rd b/man/parFlags.Rd index 14db7b4..65b9528 100644 --- a/man/parFlags.Rd +++ b/man/parFlags.Rd @@ -20,10 +20,12 @@ Create a string from the names of the (boolean) parameters (TRUE or FALSE) of tr Use it for Suffixing plot names with the parameters that were used for that plot. } \examples{ +\dontrun{ pearson <- TRUE filtered <- TRUE normalized <- FALSE MyPlotname <- parFlags(prefix = "MyPlot", pearson, filtered, normalized) MyPlotname +} }