Dear all,

Sorry to resurrect this thread but I still have the issue discussed here. I get "Error: could 
not find function ".ess.eval"" when inside an R code block with :session *R* but not 
without :session *R*.

More specifically, in the following .org file the first code block works but 
not the second one:

--8<---------------cut here---------------start------------->8---
#+begin_src R
  date()
#+end_src

#+RESULTS:
: Tue Oct 07 19:31:21 2014

#+begin_src R :session *R*
  date()
#+end_src

#+RESULTS:

--8<---------------cut here---------------end--------------->8---

Note that I use the latest Emacs on Windows (24.3.1, i386-mingw-nt6.1.7601) 
with the latest Org-mode (version 8.3beta, release_8.3beta-427-g942eb6) and the 
current development version of ESS (the same happens for ESS 14.09). 
Interestingly and as reported, it does not happen when downgrading to ESS 13.09 
(but as this was handled as an org-mode problem so far I decided to keep it on 
this list).

Furthermore, my .emacs file currently only consists of the following:

--8<---------------cut here---------------start------------->8---

(require 'org)
(require 'ess-site)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(inhibit-startup-screen t)
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(org-babel-do-load-languages
  'org-babel-load-languages
  '((emacs-lisp . nil)
        (R . t)))
        
(setq org-babel-R-command "C:/Progra~1/R/R-3.1.1/bin/x64/rterm.exe --slave 
--no-save")

--8<---------------cut here---------------end--------------->8---

The windows is Windows 7, 64 bit.

Can anybody reproduce or solve?

Henrik


Am 19.09.2014 um 00:45 schrieb Charles C. Berry:
On Thu, 18 Sep 2014, Charles C. Berry wrote:

On Thu, 18 Sep 2014, Cook, Malcolm wrote:

Hi,

Hmm, I spoke too soon.... the problem is only partially fixed by this patch...


Trying to work with in org-mode with R code blocks attached to persistent 
sessions (i.e. adding ':session myRsession' to the code block header ) makes 
things start to break again, at least in my hands.

Really? I have been working for hours using the :session header with no 
problems.

What exactly breaks? Do you have an example?

FWIW, this works when I move my cursor into the source block and C-c C-c.

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC R :session myRsession
abc <- 1
abc+1
#+END_SRC
--8<---------------cut here---------------end--------------->8---

Producing

--8<---------------cut here---------------start------------->8---
#+RESULTS:
: 2
--8<---------------cut here---------------end--------------->8---

which is what I expect.

I use Org-mode version 8.3beta (release_8.3beta-366-gb2fca7.

(updated a few hours back)


Forget to mention:

ess-version: 14.09 [git: 9c248f1a026b6990d0cd0cd326d82854d5cafb26]


Chuck



--
Dr. Henrik Singmann
Albert-Ludwigs-Universität Freiburg, Germany
http://www.psychologie.uni-freiburg.de/Members/singmann


Reply via email to