Run R in multi threaded
3
1
Entering edit mode
8.8 years ago
win ▴ 990

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 • 5.0k views
ADD COMMENT
2
Entering edit mode
8.8 years ago

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

ADD COMMENT
2
Entering edit mode
3.7 years ago

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

Kevin

ADD COMMENT
1
Entering edit mode
8.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

Login before adding your answer.

Traffic: 1763 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