From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Executable not found error with begin_src R but not begin_src R :session on Windows Date: Tue, 9 Apr 2013 23:06:34 -0500 Message-ID: References: <87vc7wii5i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmIz-00038Z-0P for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 00:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPmIv-0003KT-1U for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 00:06:40 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:35044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmIu-0003KJ-Pu for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 00:06:36 -0400 Received: by mail-lb0-f172.google.com with SMTP id u10so106066lbi.3 for ; Tue, 09 Apr 2013 21:06:35 -0700 (PDT) In-Reply-To: <87vc7wii5i.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode On Mon, Apr 8, 2013 at 8:53 PM, Eric Schulte wrote: > John Hendy writes: > >> On 8.0-pre and have never had an issue with R source code blocks >> before. I was just trying something simple like: >> >> #+begin_src R :exports results >> >> a <- 1+2 >> a >> >> #+end_src >> >> I got empty #+results block upon execution and the *Org Babel Error* >> (something like that) buffer had an error about the executable not >> being found. Adding =:session= produced results, though. >> >> Is there something new about the difference between execution with and >> without sessions with R? >> > > I'm able to execute R code on 8.0-pre with or without a session. > Perhaps your `org-babel-R-command' variable doesn't point to R, or maybe > you have a broken install? > > If this problem persists please send an error trace (with > `debug-on-error' set to t). > But wait. If my issue was pointing to the wrong directory, I don't get why :session vs. not would make a difference? This is the exact error I get: 'R' is not recognized as an internal or external command, operable program or batch file. How does :session find R if it's not in Windows path and seems to depend on explicitly being told where to look via org-babel-R-command? John > Cheers, > >> >> >> John >> > > -- > Eric Schulte > http://cs.unm.edu/~eschulte