From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Alexander Gerds Subject: Re: issue with babel R evaluate session vs external process Date: Mon, 12 Mar 2012 21:17:53 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Bgw-0001LB-Vp for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 16:18:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7Bgv-00044Z-1J for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 16:18:02 -0400 Received: from mail1.sund.ku.dk ([192.38.117.160]:12362 helo=edge1.sund.ku.dk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Bgu-00043i-Qj for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 16:18:00 -0400 In-Reply-To: (Thomas Alexander Gerds's message of "Thu, 9 Feb 2012 13:54:15 +0100") 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@gnu.org finally I found the problem: it was not at all related to org or babel, but due to a function in my ess-send-input-hook.=20 sorry for bothering :) 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=3Dmatrix(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=3Dmatrix(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=3Dmatrix(1:2)\nfoo" > output '("output" "replace") nil nil) > *** Eval error ***=20=20 > ELISP> (org-babel-R-evaluate-external-process "foo=3Dmatrix(1:2)\nfoo" > 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?=20 > > thanks! > tomy -- Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics University of Copenhagen, =D8ster Farimagsgade 5, 1014 Copenhagen, Denmark Office: CSS-15.2.07 (Gamle Kommunehospital) tel: 35327914 (sec: 35327901)=20