This works:
clusterExport(cl, c("f","y"), envir=environment())
r <- parLapply(cl, x, function(x) f(x,y))
You need to export your function (“f”) and additional variables (“y”), and then
define that function inside parLapply ("f(x,y)”). If you were to also make use
of
additional libraries (or sou
Hello,
I'm receiving the following NOTE during recent checks of the rmgarch
package:
'library' or 'require' call to 'rugarch' which was already attached by
Depends.
which I traced to the recent changes in R 3.02 Utilities:
• packages which are used in ‘library()’ or ‘requires()’ calls in the R