tests/testthat/_snaps/mold-xy.md

unknown mold() inputs throw an error

Code
  mold("hi")
Condition
  Error in `mold()`:
  ! `x` must be a data frame, matrix, recipe, or formula, not the string "hi".

cannot pass anything in the dots

Code
  mold(iris[, "Sepal.Length", drop = FALSE], iris$Species, z = "in the dots")
Condition
  Error in `mold()`:
  ! `...` must be empty.
  x Problematic argument:
  * z = "in the dots"
Code
  mold(iris[, "Sepal.Length", drop = FALSE], iris$Species, blueprint = default_xy_blueprint(
    composition = "dgCMatrix"), z = "in the dots")
Condition
  Error in `mold()`:
  ! `...` must be empty.
  x Problematic argument:
  * z = "in the dots"


Try the hardhat package in your browser

Any scripts or data that you put into this service are public.

hardhat documentation built on March 31, 2023, 10:21 p.m.