From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry 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: Wed, 8 Oct 2014 01:59:24 +0000 (UTC) Message-ID: References: <87bnqgzljd.fsf@kademan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbgXd-0004I1-QT for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 21:59:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbgXX-0005C9-Pm for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 21:59:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:39657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbgXX-0005BB-Ir for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 21:59:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XbgXS-0002ls-Eg for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 03:59:38 +0200 Received: from 172-7-166-26.lightspeed.sndgca.sbcglobal.net ([172.7.166.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2014 03:59:38 +0200 Received: from ccberry by 172-7-166-26.lightspeed.sndgca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2014 03:59:38 +0200 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 Ista Zahn gmail.com> writes: > > > > On Oct 7, 2014 3:41 PM, "Henrik Singmann" psychologie.uni-freiburg.de> wrote: > > > > 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*. > > [snip] > > > > Can anybody reproduce or solve? > Yes, I can reproduce with emacs 24.3.1, org 8..2.3, and ess 14.09 on org 8.2.3 ?? The last 8.2.3 release I see on git is 2013-11-15 05:58:32 (GMT) The ess 14 patch showed up on 2014-09-18 01:10:40 (GMT). > Archlinux, but only if I don't start the R session first. If I do 'M-x > R' to manually start an R process it works fine, but if there is no R > process already running I get 'Error: could not find function > ".ess.eval"' Yes. (R) starts the session asynchronously, so in programmatic use subsequent commands can jump the queue and confuse the process. This did not seem to matter before ess 14. The 2014-09-18 01:10:40 (GMT) patch forces a wait for (R) to finish before anymore commands are sent to the session. So either update org-mode or downdate ess or replace org-babel-R-initiate-session with the current version and recompile. HTH, Chuck