From 519711d51ef9417ae9b9c81e2c8922ea75f215dc Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Thu, 14 Aug 2025 15:02:58 -0700 Subject: [PATCH] update process_.config to handle new configs from melodie change --- DESCRIPTION | 2 +- R/add_candidates.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3868a46..3ef28df 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: stacks Title: Tidy Model Stacking -Version: 1.1.1.9000 +Version: 1.1.1.9001 Authors@R: c( person("Simon", "Couch", , "simon.couch@posit.co", role = c("aut", "cre")), person("Max", "Kuhn", , "max@posit.co", role = "aut"), diff --git a/R/add_candidates.R b/R/add_candidates.R index d8abde5..440fa7d 100644 --- a/R/add_candidates.R +++ b/R/add_candidates.R @@ -514,14 +514,14 @@ process_.config <- function(.config, df, name) { .config_ <- gsub( - pattern = c("Model|Recipe"), + pattern = c("Model|Recipe|mod|post"), replacement = "", x = .config_, ) .config_ <- gsub( - pattern = c("Preprocessor"), + pattern = c("Preprocessor|pre"), replacement = "_", x = .config_, )