<p>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?</p>

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