Returns a value from `params` when available, otherwise evaluates an optional default function.
get_param(name, default_fun = NULL, ...)The parameter value if found and not `NULL`; otherwise the return value from `default_fun(...)` when provided; otherwise `NULL`.
get_param("missing")
#> NULL
get_param("x", function() 42)
#> [1] 42