evalCall {PBSmodelling}R Documentation

Evaluate a Function Call

Description

Evaluates a function call after resolving potential argument conflicts.

Usage

evalCall(fn, argu, ..., envir = parent.frame(),
    checkdef=FALSE, checkpar=FALSE)

Arguments

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.

Details

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.

Value

Invisibly returns the string expression of the function call that is passed to eval(parse(text=expr)).

Author(s)

Rowan Haigh, Pacific Biological Station, Nanaimo BC

See Also

doAction


[Package PBSmodelling version 2.06 Index]