[R] help with parallel processing code
Max Kuhn
mxkuhn at gmail.com
Fri Oct 28 04:12:52 CEST 2011
I have had issues with some parallel backends not finding functions
within a namespace for packages listed in the ".packages" argument or
explicitly loaded in the body of the foreach loop. This has occurred
with MPI but not with multicore. I can get around this to some extent
by calling the functions using the namespace (eg foo:::bar) but this
is pretty kludgy.
> sessionInfo()
R version 2.13.2 (2011-09-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doMPI_0.1-5 Rmpi_0.5-9 doMC_1.2.3 multicore_0.1-7
foreach_1.3.2 codetools_0.2-8 iterators_1.0.5
Max
On Thu, Oct 27, 2011 at 4:30 PM, 1Rnwb <sbpurohit at gmail.com> wrote:
> If i understand correctly you mean to write the line as below:
>
> foreach(icount(itr),.combine=combine,.options.smp=smpopts,.packages='MASS')%dopar%
>
> --
> View this message in context: http://r.789695.n4.nabble.com/help-with-parallel-processing-code-tp3944303p3945954.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Max
More information about the R-help
mailing list