From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: issue with babel R evaluate session vs external process Date: Wed, 15 Feb 2012 07:33:15 -0700 Message-ID: <87mx8kuo23.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxgYn-00056T-Bn for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 10:14:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxgYf-0006WC-4R for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 10:14:21 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:42149 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RxgYe-0006PD-Pd for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 10:14:13 -0500 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: Thomas Alexander Gerds Cc: emacs-orgmode@gnu.org When executing your example below on my system both code blocks work as shown below. #+begin_src R :results output :exports results foo=matrix(1:2) foo #+end_src #+RESULTS: : [,1] : [1,] 1 : [2,] 2 #+begin_src R :results output :exports results :session *R* foo=matrix(3:8) foo #+end_src #+RESULTS: : [,1] : [1,] 3 : [2,] 4 : [3,] 5 : [4,] 6 : [5,] 7 : [6,] 8 If you are not using the latest version of Org-mode (from git) I would suggesting updating to the Org-mode git HEAD which should hopefully fix this issue. Thomas Alexander Gerds writes: > still a beginner, and maybe therefore, in my setup (release is: 7.8.03, > emacs 23.2.1) the following occurs > > -------------org.snip----------------------- > * here it works: org-ctrl-c-ctrl-c and export > > #+begin_src R :results output :exports results > foo=matrix(1:2) > foo > #+end_src > > #+RESULTS: > : [,1] > : [1,] 1 > : [2,] 2 > > * here it does not: > > #+begin_src R :results output :exports results :session *R* > foo=matrix(3:8) > foo > #+end_src > > the buffer *R* shows this: > >> 'org_babel_R_eoe' > [1] "org_babel_R_eoe" > ----------------org.snap------------------ > > some debugging revealed this: > > ELISP> (org-babel-R-evaluate-session "*R*" "foo=matrix(1:2)\nfoo" > ELISP> output '("output" "replace") nil nil) > *** Eval error *** > ELISP> (org-babel-R-evaluate-external-process "foo=matrix(1:2)\nfoo" > ELISP> output '("output" "replace") nil nil) > " [,1]\n[1,] 1\n[2,] 2\n" > > but strange-enough when I try to edebug org-babel-R-evaluate-session, I > get an error: > > Symbol's value as variable is void: edebug-after > > can someone explain this? > > thanks! > tomy -- Eric Schulte http://cs.unm.edu/~eschulte/