tidymodels / dials

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

Use updates error handling #271

Open EmilHvitfeldt opened 1 year ago

EmilHvitfeldt commented 1 year ago

In the following error I think we could improve it in 2 ways:

library(dials)
#> Loading required package: scales
degree(1L)
#> Error in `new_quant_param()`:
#> ! Since `type = 'double'`, please use that data type for the range.

#> Backtrace:
#>     ▆
#>  1. └─dials::degree(1L)
#>  2.   └─dials::new_quant_param(...)
#>  3.     └─dials:::check_range(range, type, trans)
#>  4.       └─rlang::abort(msg, call = call)