Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

register PSOCK cluster with foreach - R 2.14

Tags:

r

snow

How would I register a PSOCK cluster (created using package Parallel) with foreach? I'm currently using registerDoSNOW in the doSNOW package to register a snow SOCK cluster.

like image 375
SFun28 Avatar asked Nov 30 '11 02:11

SFun28


1 Answers

Use registerDoParallel from the doParallel package on the cluster handle. It is essentially the same as registerDoSNOW for socket clusters.

like image 68
Simon Urbanek Avatar answered Oct 11 '22 18:10

Simon Urbanek