We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello @topepo
Imagine if foo <- usemodels::use_xgboost(mpg~., mtcars) would return a list of code chunks, like
foo <- usemodels::use_xgboost(mpg~., mtcars)
foo <- list(); foo$recipe <- "xgb_recipe <- recipe(formula = mpg ~ ., data = mtcars) %>% step_zv(all_predictors()) " foo$recipe #> [1] "xgb_recipe <- \n recipe(formula = mpg ~ ., data = mtcars) %>% \n step_zv(all_predictors()) " cat(foo$recipe) #> xgb_recipe <- #> recipe(formula = mpg ~ ., data = mtcars) %>% #> step_zv(all_predictors())
Created on 2020-06-18 by the reprex package (v0.3.0)
It would suit perfectly for build custom rstudio snippets programatically, like this one by @RobertMyles https://www.robertmylesmcdonnell.com/content/posts/modelscript/
The cat()'s could live inside a print() S3 method...
I would love to contribute with this if it sounds like a good idea.
The text was updated successfully, but these errors were encountered:
Great idea. Go for it!
Sorry, something went wrong.
No branches or pull requests
Hello @topepo
Imagine if
foo <- usemodels::use_xgboost(mpg~., mtcars)
would return a list of code chunks, likeCreated on 2020-06-18 by the reprex package (v0.3.0)
It would suit perfectly for build custom rstudio snippets programatically, like this one by @RobertMyles https://www.robertmylesmcdonnell.com/content/posts/modelscript/
The cat()'s could live inside a print() S3 method...
I would love to contribute with this if it sounds like a good idea.
The text was updated successfully, but these errors were encountered: