Description Usage Arguments Examples
Each function supplied to run_gamlss_pipeline
must have certain parameters.
They alaways include params_dots
.
1 | .validate_fns(env, expected_params = NULL)
|
env |
environment. Environment in which the functions are found and to be saved. |
expected_params |
list. Names are names of functions to be validated and values are expected parameters.
If |
1 2 3 4 5 6 | env_curr <- environment()
fn1 <- function(x) x; fn2 <- function(x) y
expected_params <- list(fn1 = 'x', fn2 = 'y')
gamlsspipeline:::.validate_fns(env = env_curr, expected_params = expected_params) # error
fn2 <- NULL
gamlsspipeline:::.validate_fns(env = env_curr, expected_params = expected_params) # no error given if fn is NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.