As of a version or two ago, dials
changed its parameter objects to be functions instead of pre-compiled objects.
library(dials)
#> Loading required package: scales
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
grid_random(
mtry() %>% range_set(c( 1, 14)),
trees() %>% range_set(c( 500, 1000)),
min_n() %>% range_set(c(2, 10)),
size = 30
)
#> # A tibble: 30 x 3
#> mtry trees min_n
#> <int> <int> <int>
#> 1 1 727 4
#> 2 10 589 7
#> 3 7 538 2
#> 4 1 710 9
#> 5 4 703 4
#> 6 5 917 2
#> 7 8 672 7
#> 8 1 886 5
#> 9 14 725 5
#> 10 13 851 10
#> # ⦠with 20 more rows
Created on 2020-01-18 by the reprex package (v0.3.0)