Re: [Rd] Parallel computing: how to transmit multiple parameters to a function in parLapply?

2013-12-24 Thread alexios ghalanos
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

[Rd] 'library' or 'require' call to package which was already attached by Depends

2013-09-05 Thread alexios ghalanos
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