tidymodels / hardhat

Construct Modeling Packages
https://hardhat.tidymodels.org
Other
101 stars 16 forks source link

usethis like function for the structure of a model interface #87

Closed DavisVaughan closed 5 years ago

DavisVaughan commented 5 years ago

use_model_interface(model = "linear_regression")

DavisVaughan commented 5 years ago
usethis::create_package()
use_model_package()
  usethis::use_package("hardhat")
  usethis::use_package("rlang")
  usethis::use_package_doc()
  use_template("constructor.R")
  use_template("fit-implementation.R")
  use_template("fit-bridge.R")
  use_template("fit-interface.R")
  use_template("predict-implementation.R")
  use_template("predict-bridge.R")
  use_template("predict-interface.R")
  # suggest to use devtools::document()
DavisVaughan commented 5 years ago

usethis::use_package("recipes", "Suggests")

github-actions[bot] commented 3 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.