emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] issue with babel R evaluate session vs external process


From: Thomas Alexander Gerds
Subject: [O] issue with babel R evaluate session vs external process
Date: Thu, 9 Feb 2012 13:54:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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" 'output 
'("output" "replace") nil nil)
*** Eval error ***  
ELISP> (org-babel-R-evaluate-external-process  "foo=matrix(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? 

thanks!
tomy

-- 
sent from nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]