This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Run R in multi threaded

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

3 answers

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

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

Kevin

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.

Log in to answer this question.