From deed89bcd2e5366845038b985a75c1afaec06845 Mon Sep 17 00:00:00 2001 From: edhell Date: Thu, 14 Nov 2024 11:40:42 -0300 Subject: [PATCH] fixed codegen hardcoded hmeqTrain --- R/codegen.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/codegen.R b/R/codegen.R index 1da3430..82f06b9 100644 --- a/R/codegen.R +++ b/R/codegen.R @@ -157,7 +157,7 @@ codegen.workflow <- function(tm_workflow, path = "scoreCode.R", rds = "model.rds if (!is.null(inputs)) { - if (!is.vector(names(hmeqTrain))) stop("inputs must be a vector names") + if (!is.vector(inputs)) stop("inputs must be a vector names") predictors <- inputs