The Problem: I do not find apps present in my bash path when using system() calls under 10.9 and using RStudio 0.98-501.
ex1
system("echo $PATH", intern=FALSE)
# this returns a very short PATH without any of my privately declared ones
ex2
system("bowtie --help", intern=TRUE)
# does not find bowtie while it is there all right and the same call works under R cli
This seems due to the fact that RStudio, being a GUI app, does not inherit the full PATH defined in my .profile/.bashrc
I found many posts related to this for older mac systems and assembled a solution working for mavericks. I tried the fix from Setting environment variables in OS X? but no success under mavericks.
launchctl setenv PATH $PATH