Learn R Programming

wyz.code.offensiveProgramming (version 1.1.24)

runTransientFunction: 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)

Value

A list with names

status

a single boolean. Always TRUE when evaluation mode is standard_R_evaluation. Otherwise, will reflect result validity in the chose evaluation mode.

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 standard_R_evaluation

parameter_type_checks

available if mode is type_checking_inforcement

Arguments

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 EvaluationMode

function_return_type_s_1

a string that is a semantic parameter name, to express expected function return type

Author

tools:::Rd_package_author("wyz.code.offensiveProgramming")

Maintainer: tools:::Rd_package_maintainer("wyz.code.offensiveProgramming")

See Also

Refer to runFunction.

Examples

Run this code
##---- 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')

Run the code above in your browser using DataLab