tune_dep() defines candidates for one argument as a function of other
arguments.
Examples
# sfupar depends on sfu
tune_dep(
depends_on = "sfu",
map = function(sfu) {
if (identical(sfu, gsDesign::sfLDOF)) tune_fixed(0) else tune_seq(-4, 4, 9)
}
)
#> $type
#> [1] "dep"
#>
#> $depends_on
#> [1] "sfu"
#>
#> $map
#> function (sfu)
#> {
#> if (identical(sfu, gsDesign::sfLDOF))
#> tune_fixed(0)
#> else tune_seq(-4, 4, 9)
#> }
#> <environment: 0x55b42dfb9b20>
#>
#> $call
#> tune_dep(depends_on = "sfu", map = function(sfu) {
#> if (identical(sfu, gsDesign::sfLDOF))
#> tune_fixed(0)
#> else tune_seq(-4, 4, 9)
#> })
#>
#> attr(,"class")
#> [1] "gstune_spec"