[ESS] R doesn't function in *R* buffer after "M-x R"
maechler at stat.math.ethz.ch
Sat Nov 14 12:26:18 CET 2009
On Fri, Nov 13, 2009 at 11:23, <pleydell at supagro.inra.fr> wrote:
> Dear ESS users
> I have a new install of Ubuntu Hardy on a 64 bit machine. R is installed from
> source at /home/david/lib/R-2.10.0/bin and in .emacs I have
> (setenv "PATH" (concat (getenv "PATH") ":/home/david/lib/R-2.10.0/bin"))
That's not so good: Either the PATH has to be set in your startup
before you call emacs --- and I think it should : You want to be able
to use 'R CMD BATCH' , 'R CMD INSTALL' , 'R --help', ..., .. also
or -- if you want to change the path emacs uses for finding executables,
you must extend the emacs variable exec-path.
But as Emacs initializes exec-path from the active PATH when emacs
starts, the correct solution really is to make sure R is in your
independently of emacs, and then, also M-x R will work fine.
Martin Maechler, ETH Zurich
> (require 'ess-site)
> and a M-x getenv gives
> But when I do M-x R I get the error message
> "Searching for program: no such file or directory, R"
> The M-x R succeeded in providing a *R* buffer but R is not running inside the
> buffer. I can start R fine inside a *shell* buffer by typing R at the prompt.
> I'm quite confused why ESS can't find R, I also tried
> (add-to-list 'load-path "/home/david/lib/R-2.10.0/bin")
> but get the same error message.
> How can I get M-x R to work properly?
> David Pleydell
> UMR BGPI
> TA A-54/K
> Campus International de Baillarguet
> 34398 MONTPELLIER CEDEX 5
> Tel: +33 4 99 62 48 65 - Secrétariat : +33 4 99 62 48 21
> Fax : +33 4 99 62 48 22
> ESS-help at stat.math.ethz.ch mailing list
More information about the ESS-help