I'm running emacs 24.2.1 on OpenSUSE 12.2 x 64. I am trying to get ESS mode to load rJava properly. I get it to work from M-x shell
by saving the environment vars from R CMD javareconf
to my .bashrc
. Now, when I run R in shell-mode, it works fine and loads the libraries and finds the paths without issue.
The Problem occurs when I try to use ESS mode (M-x R RET
), which apparently doesn't read my .bashrc . How can I get an in-emacs program like ESS to read my variables, without lengthy double-coding them into my .emacs file?
Move your environment variable settings from .bashrc
to .xinitrc
. This way they'll be set for GUI applications like emacs
, not just programs you run from terminal shells.