emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Has anything changed with R setup recently?
@ 2013-09-25 15:02 John Hendy
  2013-09-25 15:54 ` John Hendy
  0 siblings, 1 reply; 2+ messages in thread
From: John Hendy @ 2013-09-25 15:02 UTC (permalink / raw)
  To: emacs-orgmode

I started a post a bit ago and thought I had my R/Windows woes resolved:
- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg57170.html

I haven't change anything except for updating my path to the more
recent R version I now have installed (used to have 2.15, now have
3.0.1). I have the following in .emacs:

(setq org-babel-R-command "R/R-3.0.1/bin/x64/R --slave --no-save")

This was previously working. I just got an error/backtrace when trying
to export to LaTeX with babel blocks from Windows. To try and
simplify, I just did =M-x R= and got the error:

apply: Searching for program: no such file or directory, Rterm

I've double checked my path, which is: C:\Program
Files\R\R-3.0.1\bin\x64, and there are the following .exe files
present: R, Rcmd, Rgui, Rscript, RSetReg, and Rterm.

In re-checking the Worg page for R setup, I changed my path to the following:

C:/Progra~1/R/R-3.0.1/bin/x64/R --slave --no-save

On a fresh Emacs session when issuing =M-x R=, I get this:

#+begin_src backtrace

Debugger entered--Lisp error: (file-error "Searching for program" "no
such file or directory" "Rterm")
  start-process("R" #<buffer *R*> "Rterm" "--ess")
  apply(start-process "R" #<buffer *R*> "Rterm" "--ess")
  start-file-process("R" #<buffer *R*> "Rterm" "--ess")
  apply(start-file-process "R" #<buffer *R*> "Rterm" "--ess")
  comint-exec-1("R" #<buffer *R*> "Rterm" ("--ess"))
  comint-exec(#<buffer *R*> "R" "Rterm" nil ("--ess"))
  inferior-ess-make-comint("*R*" "R" "--ess  ")
  ess-multi("R" #<buffer *R*> "--ess  ")
  inferior-ess("--ess  ")
  R(nil)
  call-interactively(R t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

#+end_src

Has anything changed recently that would require additional settings
for R to function properly on Windows? Happy to provide more
information. This is why I typically avoid using Org on Windows at all
costs :) Linux just... works.



Thanks,
John

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Has anything changed with R setup recently?
  2013-09-25 15:02 Has anything changed with R setup recently? John Hendy
@ 2013-09-25 15:54 ` John Hendy
  0 siblings, 0 replies; 2+ messages in thread
From: John Hendy @ 2013-09-25 15:54 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Sep 25, 2013 at 10:02 AM, John Hendy <jw.hendy@gmail.com> wrote:
> I started a post a bit ago and thought I had my R/Windows woes resolved:
> - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg57170.html
>
> I haven't change anything except for updating my path to the more
> recent R version I now have installed (used to have 2.15, now have
> 3.0.1). I have the following in .emacs:
>
> (setq org-babel-R-command "R/R-3.0.1/bin/x64/R --slave --no-save")
>
> This was previously working. I just got an error/backtrace when trying
> to export to LaTeX with babel blocks from Windows. To try and
> simplify, I just did =M-x R= and got the error:
>
> apply: Searching for program: no such file or directory, Rterm
>
> I've double checked my path, which is: C:\Program
> Files\R\R-3.0.1\bin\x64, and there are the following .exe files
> present: R, Rcmd, Rgui, Rscript, RSetReg, and Rterm.
>
> In re-checking the Worg page for R setup, I changed my path to the following:
>
> C:/Progra~1/R/R-3.0.1/bin/x64/R --slave --no-save
>
> On a fresh Emacs session when issuing =M-x R=, I get this:
>
> #+begin_src backtrace
>
> Debugger entered--Lisp error: (file-error "Searching for program" "no
> such file or directory" "Rterm")
>   start-process("R" #<buffer *R*> "Rterm" "--ess")
>   apply(start-process "R" #<buffer *R*> "Rterm" "--ess")
>   start-file-process("R" #<buffer *R*> "Rterm" "--ess")
>   apply(start-file-process "R" #<buffer *R*> "Rterm" "--ess")
>   comint-exec-1("R" #<buffer *R*> "Rterm" ("--ess"))
>   comint-exec(#<buffer *R*> "R" "Rterm" nil ("--ess"))
>   inferior-ess-make-comint("*R*" "R" "--ess  ")
>   ess-multi("R" #<buffer *R*> "--ess  ")
>   inferior-ess("--ess  ")
>   R(nil)
>   call-interactively(R t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)
>
> #+end_src
>
> Has anything changed recently that would require additional settings
> for R to function properly on Windows? Happy to provide more
> information. This is why I typically avoid using Org on Windows at all
> costs :) Linux just... works.
>

Solved... Even though I'd been uninstalling previous versions of R,
Windows leaves the old directories in C:\Program Files\R, and I think
ESS just searches the first one alpha-numerically, so I think it was
trying to use the old versions at R-2.14.0 instead of my new version.
I deleted all directories except R-3.0.1, and it now works (both =M-x
R= and export to LaTeX).


John

>
>
> Thanks,
> John

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-25 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25 15:02 Has anything changed with R setup recently? John Hendy
2013-09-25 15:54 ` John Hendy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).