Run R in multi threaded
3
1
Entering edit mode
8.2 years ago
win ▴ 970

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

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

ADD COMMENT
2
Entering edit mode
3.1 years ago

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

Kevin

ADD COMMENT
1
Entering edit mode
8.2 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: 1956 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