[ESS] ESS unable to find R on Linux when emacs started by opening a .R file
Gavin Simpson
uc|@g|@ @end|ng |rom gm@||@com
Wed Jul 15 21:38:45 CEST 2015
Hi Stephen,
Thanks for the speedy reply!
Before visiting a file:
("/usr/lib64/qt-3.3/bin" "/usr/lib64/ccache" "/usr/local/bin"
"/usr/local/sbin" "/usr/bin" "/usr/sbin" "/bin" "/sbin"
"/home/gavin/.local/bin" "/home/gavin/bin"
"/usr/libexec/emacs/24.5/x86_64-redhat-linux-gnu")
Which contains my ~/bin.
After visiting a .R file (without closing Emacs from above) M-x R works and
the value of exec-path is the same as I report above.
If I locate the .R file I want to edit using the file manager (Files in
Gnome 3) and open it from there with emacs, the exec-path contains just:
("/usr/local/bin" "/usr/local/sbin" "/usr/bin" "/usr/sbin" "/bin" "/sbin"
"/usr/libexec/emacs/24.5/x86_64-redhat-linux-gnu")
which is clearly missing my local paths.
I'm not aware of having fiddled with anything anywhere that might have lead
to this state of affairs?
Thanks again,
Gavin
On 15 July 2015 at 13:22, Stephen Eglen <S.J.Eglen using damtp.cam.ac.uk> wrote:
>
> > I've been re-setting up my laptop after upgrading my Fedora installation
> to
> > Fedora 22. I run a locally built R (in ~/R/build/3.2-patched) with a sym
> > link to the R executable located in ~/bin. I am using the github version
> of
> > ESS (setup today).
> >
> > I can start R in a bash shell in the usual way (typing R), and from
> within
> > Emacs shell after M-x shell. I can also do M-x R in a clean Emacs session
> > (no files loaded into buffers). What is not working for me is starting R
> > within Emacs via M-x R when I have a .R file open in the Emacs buffer.
> > Instead I see "Searching for program: no such file or directory, R"
> after I
> > accept the suggestion for the starting directory.
> >
> > Anyone know what is going on here and how to solve this issue?
> >
>
> Sounds odd! What is the value of exec-path (C-h v RET exec-path RET)
> once you start Emacs, and then after you have visited an .R buffer?
>
--
Gavin Simpson, PhD
[[alternative HTML version deleted]]
More information about the ESS-help
mailing list