Description Usage Arguments Value Author(s) See Also Examples
View source: R/runTransientFunction.R
Run a function in a transient (non persistent) context.
1 2 3 4 | runTransientFunction(function_f_1,
arguments_l,
evaluationMode_o_1,
function_return_type_s_1)
|
function_f_1 |
a single R function |
arguments_l |
a list of arguments to pass to the function |
evaluationMode_o_1 |
an evaluation mode object. See |
function_return_type_s_1 |
a semantic parameter name, given as a string, to express expected function return type |
A list with names
status |
a single boolean. Always |
value |
the result of the computation, might be a scalar or not, a warning, an error, ... |
mode |
the evaluation mode used to check the results |
function_return_type_check |
available if mode is different of |
parameter_type_checks |
available if mode is |
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to runFunction
1 2 3 4 5 6 | ##---- typical case ----
em <- EvaluationMode(defineEvaluationModes()[3])
h <- function(x_s) x_s
runTransientFunction(h, list('neonira'), em, 'x_s')
runTransientFunction(h, list(pi), em, 'x_s')
runTransientFunction(h, list(pi), em, 'x_d')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.