Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot get outcome names for workflows using add_variables() #993

Open
topepo opened this issue Mar 20, 2025 · 0 comments · May be fixed by #994
Open

cannot get outcome names for workflows using add_variables() #993

topepo opened this issue Mar 20, 2025 · 0 comments · May be fixed by #994

Comments

@topepo
Copy link
Member

topepo commented Mar 20, 2025

library(tidymodels)

lm_mod <- parsnip::linear_reg() %>% parsnip::set_engine("lm")
wflow <- workflow() %>% add_model(lm_mod)

wflow_1 <- wflow %>% add_variables(outcomes = "mpg", predictors = c(wt))

outcome_names(wflow_1)
#> Error in UseMethod("outcome_names"): no applicable method for 'outcome_names' applied to an object of class "workflow_variables"

Created on 2025-03-20 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant