[Rd] Can I use "..." in parallel:::clusterApplyLB?

From: Slava Razbash <slava.razbash_at_gmail.com>
Date: Mon, 13 Feb 2012 17:51:31 +1100


Hello,

Can I do the following? Is parallel:::clusterApplyLB() designed to work like this? The code below is for illustrative purposes only.

library(parallel)

myFunction<-function(myPar1, myPar2, ...) {

    clusterApplyLB(myCluster, x, otherFunction, otherPar1=myPar1, otherPar2=myPar2, ....)

}

otherFunction<-function(otherPar1, otherPar2, ...) {

   someFunction(somePar1, ....)

}

someFunction<-function(somePar1, somePar2=NULL, somePar3=someVal) {

   ##Do some stuff

}

myFunction( myVal1, myVal2, somePar2=myVal3, somePar3=myVal4)

The intention is that myVal3 and myVal4 get passed to someFunction() through clusterApplyLB if they are specified.

Best Regards,

Slava



R-devel_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 13 Feb 2012 - 06:54:00 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 13 Feb 2012 - 09:40:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive