[ESS] R doesn't function in *R* buffer after "M-x R"

Martin Maechler maechler at stat.math.ethz.ch
Sat Nov 14 12:26:18 CET 2009


Hi David,

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
outside Emacs,
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
PATH
independently of emacs, and then, also  M-x R  will work fine.

Regards,
Martin Maechler, ETH Zurich
> (require 'ess-site)
>
> and a M-x getenv gives
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/david/lib/R-2.10.0/bin
>
> 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?
>
> Thanks
> David
>
>
>
>
>
>
> --
> David Pleydell
> UMR BGPI
> CIRAD
> TA A-54/K
> Campus International de Baillarguet
> 34398 MONTPELLIER CEDEX 5
> FRANCE
> Tel: +33 4 99 62 48 65 - Secrétariat : +33 4 99 62 48 21
> Fax : +33 4 99 62 48 22
> http://umr-bgpi.cirad.fr/trombinoscope/pleydell_d.htm
> https://sites.google.com/site/drjpleydell/
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>



More information about the ESS-help mailing list