edamethod {StabPerf}R Documentation

Constructor function for 'edamethod' objects

Description

Constructor of an edamethod, which is an unevaluated block of code

Usage

edamethod(name=NULL, description=NULL, class=NULL, code=NULL)

Arguments

name character.
description character.
class character. Into what additional class should this object be created
code expression. Block of code, generally in {}

Details

Creates an instnce of edamethod, which is also a list and also an instance of class, when specified. The code in the object can be executed with a simply eval(meth).

See Also

eval.edamethod

Examples

mymeth <- edamethod(name="my.meth", code={ dostuff(); domorestuff(); })
# And now run it
eval(mymeth)

[Package StabPerf version 0.5 Index]