Each function supplied to
run_gamlss_pipeline must have certain parameters.
They alaways include
environment. Environment in which the functions are found and to be saved.
list. Names are names of functions to be validated and values are expected parameters.
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.