Closed
Description
The problem
The default value for parameters should be within range, as otherwise out of range values are selected (e.g. in value_seq_int and value_seq_double when levels == 1), but also everywhere else where the default is accessed.
Reproducible example
library(tidymodels)
param <- under_ratio(range = c(12,13))
param$default
# the value is 1, it should been something between 12,13
grid_regular(param,levels = 1)
# with the randomized grid it works
grid_random(param,size = 1)
reprex::reprex(si = TRUE)