| eval {BiocGenerics} | R Documentation |
Evaluate an (unevaluated) expression
Description
eval evaluates an R expression in a specified environment.
NOTE: This man page is for the eval S4 generic function
defined in the BiocGenerics package.
See ?base::eval for the default method
(defined in the base package).
Bioconductor packages can define specific methods for objects
not supported by the default method.
Usage
eval(expr, envir=parent.frame(),
enclos=if (is.list(envir) || is.pairlist(envir))
parent.frame() else baseenv())
Arguments
expr |
An object to be evaluated.
May be any object supported by the default method
(see |
envir |
The environment in which |
enclos |
See |
Value
See ?base::eval for the value returned by the
default method.
Specific methods defined in Bioconductor packages should behave as consistently as possible with the default method.
See Also
-
base::evalfor the defaultevalmethod. -
showMethodsfor displaying a summary of the methods defined for a given generic function. -
selectMethodfor getting the definition of a specific method. -
eval,expression,Vector-method in the IRanges package for an example of a specific
evalmethod (defined for when theexprandenvirarguments are an expression and a Vector object, respectively). -
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
Examples
eval # note the dispatch on 'expr' and 'envir' args only
showMethods("eval")
selectMethod("eval", c("ANY", "ANY")) # the default method