evalCall {PBSmodelling} | R Documentation |
Evaluates a function call after resolving potential argument conflicts.
evalCall(fn, argu, ..., envir = parent.frame(), checkdef=FALSE, checkpar=FALSE)
fn |
R function |
argu |
list of explicitly named arguments and their values to pass to fn . |
... |
additional arguments that a user might wish to pass to fn . |
envir |
environment from which the call originates (currently has no use or effect). |
checkdef |
logical: if TRUE , gather additional formal arguments from the
functions default function. |
checkpar |
logical: if TRUE , gather additional graphical arguments from
the list object par . |
This function builds a call to the specified function and executes it.
During the build, optional arguments ... are checked for
(i) duplication with explicit arguments argu
: if any are duplicated,
the user-supplied arguments supercede the explict ones;
(ii) availability as usuable arguments in fn
, fn.default
if
checkdef=TRUE
, and par
if checkpar=TRUE
.
Invisibly returns the string expression of the function call that is
passed to eval(parse(text=expr))
.
Rowan Haigh, Pacific Biological Station, Nanaimo BC