tests/testthat/_snaps/use.md

no model aborts normally

Code
  create_modeling_package(path = "my/path")
Condition
  Error in `create_modeling_package()`:
  ! `model` is absent but must be supplied.

no path aborts normally

Code
  create_modeling_package(model = "my_model")
Condition
  Error in `create_modeling_package()`:
  ! `path` is absent but must be supplied.

model can only be a single string

Code
  create_modeling_package(path = "my/path", model = c("model1", "model2"))
Condition
  Error in `create_modeling_package()`:
  ! `model` must be a single string.
Code
  create_modeling_package(path = "my/path", model = 1)
Condition
  Error in `create_modeling_package()`:
  ! `model` must be a single string.
Code
  create_modeling_package(path = "my/path", model = "model with space")
Condition
  Error in `create_modeling_package()`:
  ! `model` must not contain any spaces.


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.