inst/templates/R/constructor.R

new_{{model}} <- function(coefs, blueprint) {
  hardhat::new_model(coefs = coefs, blueprint = blueprint, class = "{{model}}")
}
DavisVaughan/hardhat documentation built on Oct. 5, 2021, 9:53 a.m.