When using label = NULL, we get an error - which says NULL is allowed...
The docs for new_quant_param() also say that the label is optional, so I assume it's check_label() that needs fixing here.
library(dials)
#> Loading required package: scales
new_quant_param(type = "double", range = c(0, 1), inclusive = c(TRUE, TRUE),
label = NULL)
#> Error in `new_quant_param()`:
#> ! `label` should be a single named character string or NULL.
#> Backtrace:
#> ▆
#> 1. └─dials::new_quant_param(...)
#> 2. └─dials:::check_label(label)
#> 3. └─rlang::abort(...)
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.
When using
label = NULL
, we get an error - which saysNULL
is allowed... The docs fornew_quant_param()
also say that thelabel
is optional, so I assume it'scheck_label()
that needs fixing here.Created on 2022-11-23 with reprex v2.0.2