I'm parallelizing some computation on hierarchical data, and would
find it natural to do something like this (where a call to parLapply
is embedded in outer call to parLapply):

  cl <- makeCluster(rep.int('localhost', 5),
                    type='SOCK')

  clusterExport(cl, 'cl')

  parLapply(cl, 1:5, function(i) parLapply(cl, 1:5, function(j) i * j))

Snow executes without error, but produces NULL; is embedded
parallelization, in principle, possible?

______________________________________________
R-help@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.

Reply via email to