Displaying 1 result from an estimated 1 matches for "outerfun1".
Did you mean:
outerfun3
2009 Nov 03
1
likely bug in 'serialize' or please explain the memory usage
...LL) ## return results of a call on a remote host with
FUN and DAN
}
## the function variant I will be passing into mycall
innerfun = function(z) z
x = runif(1e6)
## test run from the command line
mycall(x, innerfun)
# output: length FUN=106; length DAT=8000022
## test run from within a function
outerfun1 = function(x) mycall(x, innerfun)
outerfun1(x)
# output: length FUN=106; length DAT=8000022
## test run from within a function, where function is defined within
outerfun2 = function(x) {
nestedfun = function(z) z
mycall(x, nestedfun)
}
outerfun2(x)
# output: length FUN=253; length DAT=8000...