(This message was already forwarded to bibiko@eva.mpg.de)

Hello - 

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!

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.

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... :-)


Andrew D. Fernandes, Ph.D. (andrew@fernandes.org)
Departments of Biochemistry and Applied Mathematics
The University of Western Ontario, Canada 
Mobile Telephone +1 519 614 8106

Index: Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh
--- Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (revision 11908)
+++ Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (working copy)
@@ -1,4 +1,4 @@
-RPID=$(ps aw | grep '[0-9] /Lib.*TMRHelperDaemon' | awk '{print $1}' )
+RPID=$(ps aw | egrep '[0-9] (/Lib.*TMRHelperDaemon)|(/opt/.*TMRHelperDaemon)' | awk '{print $1}' )
 #check whether Helper daemon runs if not start it
 if [ -z "$RPID" ]; then