MC: Make Closure for functions

Description Usage Arguments Details Author(s) Examples

Description

MC makes closures for defining functions in a function.

Usage

1
MC(f, env=NULL)

Arguments

f

function

env

a list containing functions to be used in f

Details

MC declares functions to be used in f. When f is defined inside of a function, say fun, it cannot call other functions defined in fun. MC can enclose the functions needed by f and make it possible for f to call other functions defined in fun.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

Examples

1
2
f1 <- function(x, y) x+y
f2 <- MC(function(x, y) x*y, list(f1=f1))


Search within the muStat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.