tests/testthat/_snaps/tune.md

id is validated

Code
  tune(1)
Condition
  Error in `tune()`:
  ! `id` must be a single string, not the number 1.
Code
  tune(c("x", "y"))
Condition
  Error in `tune()`:
  ! `id` must be a single string, not a character vector.
Code
  tune(NA_character_)
Condition
  Error in `tune()`:
  ! `id` must be a single string, not a character `NA`.


Try the hardhat package in your browser

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

hardhat documentation built on April 4, 2025, 3:18 a.m.