tidymodels / dials

Tools for creating tuning parameter values
https://dials.tidymodels.org/
Other
113 stars 27 forks source link

Better error message when using range argument wrong #247

Closed EmilHvitfeldt closed 2 years ago

EmilHvitfeldt commented 2 years ago

The following error was extracted from https://stackoverflow.com/questions/72619333/error-range-must-have-an-upper-and-lower-bound-inf-and-unknown-are-acceptabl.

If you pass a range of numbers into range you get the following message which at first glance suggests Inf or unknown() is at fault

library(dials)
trees(range = c(100, 2000, by = 100))
#> Error in `range_validate()`:
#> ! `range` must have an upper and lower bound. `Inf` and `unknown()` are acceptable values.
hfrick commented 2 years ago

closed in #260

github-actions[bot] commented 1 year 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.