From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn 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, 7 Oct 2014 17:17:11 -0400 Message-ID: References: <87bnqgzljd.fsf@kademan.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f492fdb6000504dbb8b7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbc8C-0006Y6-6B for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 17:17:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbc8A-00030m-BW for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 17:17:16 -0400 Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:53270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbc89-000303-H3 for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 17:17:13 -0400 Received: by mail-oi0-f48.google.com with SMTP id g201so5744972oib.35 for ; Tue, 07 Oct 2014 14:17:11 -0700 (PDT) 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: Henrik Singmann Cc: emacs-orgmode Mailinglist --e89a8fb1f492fdb6000504dbb8b7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Oct 7, 2014 3:41 PM, "Henrik Singmann" < 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*. > > 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? Yes, I can reproduce with emacs 24.3.1, org 8..2.3, and ess 14.09 on 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"' Best, Ista > > 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=C3=A4t Freiburg, Germany > http://www.psychologie.uni-freiburg.de/Members/singmann > > --e89a8fb1f492fdb6000504dbb8b7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Oct 7, 2014 3:41 PM, "Henrik Singmann" <henrik.singmann@psychologie.uni= -freiburg.de> wrote:
>
> Dear all,
>
> Sorry to resurrect this thread but I still have the issue discussed he= re. 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 wor= ks but not the second one:
>
> --8<---------------cut here---------------start------------->8--= -
> #+begin_src R
> =C2=A0 date()
> #+end_src
>
> #+RESULTS:
> : Tue Oct 07 19:31:21 2014
>
> #+begin_src R :session *R*
> =C2=A0 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-g942eb= 6) 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:<= br> >
> --8<---------------cut here---------------start------------->8--= -
>
> (require 'org)
> (require 'ess-site)
>
> (custom-set-variables
> =C2=A0;; custom-set-variables was added by Custom.
> =C2=A0;; If you edit it by hand, you could mess it up, so be careful.<= br> > =C2=A0;; Your init file should contain only one such instance.
> =C2=A0;; If there is more than one, they won't work right.
> =C2=A0'(inhibit-startup-screen t)
> =C2=A0)
> =C2=A0 (custom-set-faces
> =C2=A0;; custom-set-faces was added by Custom.
> =C2=A0;; If you edit it by hand, you could mess it up, so be careful.<= br> > =C2=A0;; Your init file should contain only one such instance.
> =C2=A0;; If there is more than one, they won't work right.
> =C2=A0)
> =C2=A0 =C2=A0(org-babel-do-load-languages
> =C2=A0 'org-babel-load-languages
> =C2=A0 '((emacs-lisp . nil)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (R . t)))
> =C2=A0 =C2=A0 =C2=A0 =C2=A0
> (setq org-babel-R-command "C:/Progra~1/R/R-3.1.1/bin/x64/rterm.ex= e --slave --no-save")
>
> --8<---------------cut here---------------end--------------->8--= -
>
> The windows is Windows 7, 64 bit.
>
> Can anybody reproduce or solve?

Yes, I can reproduce with emacs 24.3.1, org 8..2.3, and ess = 14.09 on
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"'

Best,
Ista
>
> 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 fi= xed by this patch...
>>>>
>>>
>>>> Trying to work with in org-mode with R code blocks attache= d 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 heade= r with no problems.
>>>
>>> What exactly breaks? Do you have an example?
>>>
>>> FWIW, this works when I move my cursor into the source block a= nd 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=C3=A4t Freiburg, Germany
> ht= tp://www.psychologie.uni-freiburg.de/Members/singmann
>
>

--e89a8fb1f492fdb6000504dbb8b7--