From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Singmann Subject: Re: [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)] Date: Tue, 07 Oct 2014 21:34:34 +0200 Message-ID: References: <87bnqgzljd.fsf@kademan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbace-00087h-By for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 15:40:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbac8-0004QD-UK for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 15:40:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:37829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbac8-0004Np-OY for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 15:40:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xbac7-0004g8-CA for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 21:40:03 +0200 Received: from 130.60.233.84 ([130.60.233.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Oct 2014 21:40:03 +0200 Received: from henrik.singmann by 130.60.233.84 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Oct 2014 21:40:03 +0200 In-Reply-To: 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 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