From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Vorobiev Subject: Re: R and babel on Windows problem Date: Fri, 29 Jun 2012 12:12:22 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636b2bd1e5d10df04c39f8e75 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkekV-0008S9-JP for emacs-orgmode@gnu.org; Fri, 29 Jun 2012 13:12:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkekO-0007to-UI for emacs-orgmode@gnu.org; Fri, 29 Jun 2012 13:12:51 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:42934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkekO-0007tI-IN for emacs-orgmode@gnu.org; Fri, 29 Jun 2012 13:12:44 -0400 Received: by wefh52 with SMTP id h52so2848798wef.0 for ; Fri, 29 Jun 2012 10:12:42 -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: John Hendy Cc: emacs-orgmode --001636b2bd1e5d10df04c39f8e75 Content-Type: text/plain; charset=ISO-8859-1 John, I have no experience with the development version of org-mode. Try activating 'enter debugger on error' flag to see where exactly it runs into problems. Also try launching R first in ess so that there is active R session available to babel. Regards, Alex On Fri, Jun 29, 2012 at 10:24 AM, John Hendy wrote: > On Fri, Jun 29, 2012 at 9:59 AM, Alexander Vorobiev > wrote: > > John, > > > > Do you have native Windows emacs or cygwin emacs? I use native emacs on > XP > > with the latest released ess and org-mode, and have no problems with > calling > > R from babel. I do not set the org-babel-R-command which has its default > > value "R --slave --no-save" and let ess find path to R on my system. > > > > I installed native Windows and compile org-mode from git with that no > compiler worg ditty. > -- http://orgmode.org/worg/org-hacks.html#compiling-org-without-make > > Actually, in finding that page, it looks like it's been updated. I've > been using that compile-org lisp code in .emacs and now it appears > that functionality is included by default. Maybe I'll update via git > and use the built in stuff to see if that helps? > > Like I said, setting org-babel-R-command makes no difference > (commenting it out and re-loading .emacs still produces the error). > > Also, ess, as posted below, *does* seem to find my installed R > versions, so it doesn't seem to be an ess issue? > > > Any other suggestions to try? > John > > > Regards, > > Alex > > > > > > On Thu, Jun 28, 2012 at 12:46 PM, John Hendy wrote: > >> > >> I typically use orgmode + babel on Linux and have no problems. Trying > >> to run on Windows 7 and having issues... > >> > >> The pertinent bits from .emacs: > >> ---------- > >> ;; setup babel > >> (add-to-list 'load-path "~/.emacs.d/ess-12.04/lisp") > >> (require 'ess-site) > >> (setq org-babel-R-command "C:/Program\ Files/R/R-2.15.0/bin/R") > >> (org-babel-do-load-languages > >> 'org-babel-load-languages > >> '((latex . t) > >> (R . t))) > >> ---------- > >> > >> When I try to execute a simple R src block, I get: "The system cannot > >> find the path specified." I get the same with or without setting the > >> org-babel-R-command path and with or without using R.exe instead of > >> just R. > >> > >> There's an *ESS* buffer that /appears/ to be finding the versions of R > >> on my machine: > >> ---------- > >> [ess-site.el]: ess-customize-alist=nil > >> [ess-site.el _2_]: ess-customize-alist=nil > >> (R): ess-r-versions-create making M-x defuns for > >> R-2.15.0-64bit > >> R-2.14.1-64bit > >> ---------- > >> > >> Any suggestions? > >> > >> > >> Best regards, > >> John > >> > > > --001636b2bd1e5d10df04c39f8e75 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable John,

I have no experience with the development version = of org-mode. Try activating 'enter debugger on error' flag to see w= here exactly it runs into problems. Also try launching R first in ess so th= at there is active R session available to babel.

Regards,
Alex


On Fri, Jun 29, 2012 at 10:24 AM, John Hendy <jw.hendy@gmai= l.com> wrote:
On Fri, Jun 29, 2012 at 9:= 59 AM, Alexander Vorobiev
<alexander.vorobiev@gmai= l.com> wrote:
> John,
>
> Do you have native Windows emacs or cygwin emacs? I use native emacs o= n XP
> with the latest released ess and org-mode, and have no problems with c= alling
> R from babel. I do not set the=A0 org-babel-R-command=A0which has its = default
> value=A0"R --slave --no-save" and let ess find path to R on = my system.
>

I installed native Windows and compile org-mode from git with that no=
compiler worg ditty.
-- http://orgmode.org/worg/org-hacks.html#compiling-or= g-without-make

Actually, in finding that page, it looks like it's been updated. I'= ve
been using that compile-org lisp code in .emacs and now it appears
that functionality is included by default. Maybe I'll update via git and use the built in stuff to see if that helps?

Like I said, setting org-babel-R-command makes no difference
(commenting it out and re-loading .emacs still produces the error).

Also, ess, as posted below, *does* seem to find my installed R
versions, so it doesn't seem to be an ess issue?


Any other suggestions to try?
John

> Regards,
> Alex
>
>
> On Thu, Jun 28, 2012 at 12:46 PM, John Hendy <jw.hendy@gmail.com> wrote:
>>
>> I typically use orgmode + babel on Linux and have no problems. Try= ing
>> to run on Windows 7 and having issues...
>>
>> The pertinent bits from .emacs:
>> ----------
>> ;; setup babel
>> (add-to-list 'load-path "~/.emacs.d/ess-12.04/lisp")=
>> (require 'ess-site)
>> (setq org-babel-R-command "C:/Program\ Files/R/R-2.15.0/bin/R= ")
>> (org-babel-do-load-languages
>> =A0'org-babel-load-languages
>> =A0'((latex . t)
>> =A0 (R . t)))
>> ----------
>>
>> When I try to execute a simple R src block, I get: "The syste= m cannot
>> find the path specified." I get the same with or without sett= ing the
>> org-babel-R-command path and with or without using R.exe instead o= f
>> just R.
>>
>> There's an *ESS* buffer that /appears/ to be finding the versi= ons of R
>> on my machine:
>> ----------
>> [ess-site.el]: ess-customize-alist=3Dnil
>> [ess-site.el _2_]: ess-customize-alist=3Dnil
>> (R): ess-r-versions-create making M-x defuns for
>> =A0R-2.15.0-64bit
>> =A0R-2.14.1-64bit
>> ----------
>>
>> Any suggestions?
>>
>>
>> Best regards,
>> John
>>
>

--001636b2bd1e5d10df04c39f8e75--