<div class="gmail_quote">(This message was already forwarded to <a href="mailto:bibiko@eva.mpg.de">bibiko@eva.mpg.de</a>)<br><br><div>Hello - </div><div><br></div><div>I recently upgraded my OS and started having strange problems with the R bundle. Multiple helper daemons would be spawned every time I typed in a function name!</div>

<div><br></div><div>
The problem code is patched below. I use MacPorts' "R", which does not match the "/Lib.*" regexp. Instead, it should match "/opt/local/lib/R/bin/exec/R". Any other patch should work as well.</div>


<div><br></div><div>Without the patch, every time there is an error with the "help" function, a new "R" is spawned; (see the attached as an example). I had over 20 processes running at once, and was wondering why my fans were on and my system was slow... :-)</div>


<div><br></div><div>Thanks!</div><div>-Andrew.</div><div><br></div><div>--</div><div>Andrew D. Fernandes, Ph.D. (<a href="mailto:andrew@fernandes.org" target="_blank">andrew@fernandes.org</a>)<br>Departments of Biochemistry and Applied Mathematics<br>


The University of Western Ontario, Canada <br>Mobile Telephone +1 519 614 8106</div><div><br></div><div><br></div><div><br></div><div><div><font face="'courier new', monospace">Index: Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh</font></div>


<div><font face="'courier new', monospace">===================================================================</font></div><div><font face="'courier new', monospace">--- Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh</font><span style="white-space:pre"><font face="'courier new', monospace"> </font></span><font face="'courier new', monospace">(revision 11908)</font></div>


<div><font face="'courier new', monospace">+++ Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh</font><span style="white-space:pre"><font face="'courier new', monospace">      </font></span><font face="'courier new', monospace">(working copy)</font></div>


<div><font face="'courier new', monospace">@@ -1,4 +1,4 @@</font></div><div><font face="'courier new', monospace">-RPID=$(ps aw | grep '[0-9] /Lib.*TMRHelperDaemon' | awk '{print $1}' )</font></div>


<div><font face="'courier new', monospace">+RPID=$(ps aw | egrep '[0-9] (/Lib.*TMRHelperDaemon)|(/opt/.*TMRHelperDaemon)' | awk '{print $1}' )</font></div><div><font face="'courier new', monospace"> #check whether Helper daemon runs if not start it</font></div>


<div><font face="'courier new', monospace"> if [ -z "$RPID" ]; then</font></div><div><font face="'courier new', monospace"> </font><span style="white-space:pre"><font face="'courier new', monospace">       </font></span><font face="'courier new', monospace">WDIR="$TM_BUNDLE_SUPPORT"/bin</font></div>


<div><br></div></div>
</div><br>