[rkward-devel] system() and exported paths

Matthieu Stigler matthieu.stigler at gmail.com
Thu Jun 9 17:17:35 UTC 2011


Hi

I needed to add a local version of a software (context), and in order 
not to remove the other one, I exported its path (in .bashrc), as in:
  export 
PATH=/home/faonix/Documents/Ordi/Latex/Context/contextMinim/tex/texmf-linux-64/bin:$PATH

so if I do on command line:

$ echo $PATH
/home/faonix/Documents/Ordi/Latex/Context/contextMinim/tex/texmf-linux-64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

I get the same with R in console. However, if I try the same from Rkward:
system("echo $PATH")
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

So it looks like Rkward behaves differently... why? How can I change it 
so that it shows same output as in console?

Thanks!

Mat




More information about the Rkward-devel mailing list