Run R in multi threaded
3
1
Entering edit mode
5.8 years ago
win ▴ 890

I have a wrapper python script that used RPy2 and I am calling native R functions and script, but I want to run R in a multithreaded environment. At the moment I am able to run R in multi process mode. Any ideas how this can be done?

R • 2.7k views
ADD COMMENT
2
Entering edit mode
5.8 years ago

See here, question I asked on stackOverflow a while ago.

ADD COMMENT
1
Entering edit mode
5.8 years ago

There are multiple ways to do this, but one of the most common is to use packages like 'parallel', 'doMc' and 'foreach' to split out specific loops onto multiple cores in a map/reduce like manner.

ADD COMMENT
1
Entering edit mode
7 months ago

I of course have a brief tutorial here: Parallel processing in R

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 1751 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6