runTransientFunction {wyz.code.offensiveProgramming} | R Documentation |
Run Transient Function
Description
Run a function in a transient (non persistent) context.
Usage
runTransientFunction(function_f_1,
arguments_l,
evaluationMode_o_1,
function_return_type_s_1)
Arguments
function_f_1 |
a single R |
arguments_l |
a |
evaluationMode_o_1 |
an evaluation mode |
function_return_type_s_1 |
a |
Value
A list
with names
status |
a single |
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 |
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
See Also
Refer to runFunction
.
Examples
##---- 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')