From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Has anything changed with R setup recently? Date: Wed, 25 Sep 2013 10:54:13 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOrPv-000193-PY for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOrPr-0006vn-3R for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:54:19 -0400 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:48488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOrPq-0006vd-UK for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:54:15 -0400 Received: by mail-ob0-f179.google.com with SMTP id wn1so6817104obc.24 for ; Wed, 25 Sep 2013 08:54:14 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode On Wed, Sep 25, 2013 at 10:02 AM, John Hendy 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" # "Rterm" "--ess") > apply(start-process "R" # "Rterm" "--ess") > start-file-process("R" # "Rterm" "--ess") > apply(start-file-process "R" # "Rterm" "--ess") > comint-exec-1("R" # "Rterm" ("--ess")) > comint-exec(# "R" "Rterm" nil ("--ess")) > inferior-ess-make-comint("*R*" "R" "--ess ") > ess-multi("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