Not all of the parallel packages with in Windows, but doParallel is one that 
does.  Here is how to start it with 3 cores:

library(doParallel)
cl <- makeCluster(3)
registerDoParallel(cl)

It will automatically load the foreach package provided you have it installed.  
Please see the documentation for foreach for examples.

Thanks,

Roger



***************************************************************
This message and any attachments are for the intended recipient's use only.
This message may contain confidential, proprietary or legally privileged
information. No right to confidential or privileged treatment
of this message is waived or lost by an error in transmission.
If you have received this message in error, please immediately
notify the sender by e-mail, delete the message, any attachments and all
copies from your system and destroy any hard copies.  You must
not, directly or indirectly, use, disclose, distribute,
print or copy any part of this message or any attachments if you are not
the intended recipient.


-----Original Message-----
From: R-SIG-Finance [mailto:[email protected]] On Behalf Of 
Gambulator Gambulator
Sent: Monday, October 26, 2015 2:21 PM
To: [email protected]
Subject: [R-SIG-Finance] parallel processing

I did quite a bit of googling. it is not clear to me if it works now on Windows 
or not. it is pretty slow even if I have turned off my debug,verbose or print. 
any idea?

        [[alternative HTML version deleted]]

_______________________________________________
[email protected] mailing list 
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.
_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Reply via email to