From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 @ /usr/local/share/emacs/site-lisp/org/)] Date: Tue, 16 Sep 2014 15:03:54 +0200 Message-ID: References: <87bnqgzljd.fsf@kademan.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTsVt-0006C7-VU for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 09:09:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTsVl-000112-K3 for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 09:09:45 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:33843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTsVl-00010S-B6 for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 09:09:37 -0400 Received: by mail-we0-f178.google.com with SMTP id q58so5757306wes.9 for ; Tue, 16 Sep 2014 06:09:33 -0700 (PDT) In-Reply-To: <87bnqgzljd.fsf@kademan.org> (Ed Kademan's message of "Mon, 15 Sep 2014 16:16:54 -0400") 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: Ed Kademan Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks - you came before me. I get the same error but managed to work aroun= d. This is likely caused by the upgrade of ess, as I realized it after upgrading to ess 14.09. You can work around by=20 1) evaluating the R code which gives the error message 2) quitting the R session 3) re-starting the R session manually in the same window (where the old R session was) I also send this to the ess mailing list. Cheers, Rainer Ed Kademan writes: > I can't evaluate R code blocks in org files. For example the file with > contents: > > #+property: header-args:R :session R-foo > > #+BEGIN_SRC R > print(pi) > #+END_SRC > > spawns an R session that reports: > > Error: could not find function ".ess.eval" > > and does not give me a result. > I am running ess-version: 14.09 and am invoking emacs as follows: > > #!/bin/sh > > o=3D/usr/local/share/emacs/site-lisp/org > emacs -Q --eval=3D"(progn > (add-to-list 'load-path \"$o\") > (require 'org) > (org-babel-do-load-languages > 'org-babel-load-languages > '((R . t))) > (package-initialize) > (setq ess-ask-for-ess-directory 'nil > ess-directory \"~/R/\"))" > > EdK > > Emacs : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23) > of 2014-08-23 on dl > Package: Org-mode version 8.3beta (release_8.3beta-362-ga92789 @ /usr/loc= al/share/emacs/site-lisp/org/) > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-execute-safely-maybe) > org-tab-first-hook '(org-hide-block-toggle-maybe > org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > org-cycle-hide-inline-tasks org-cycle-show-empty-lines > org-optimize-window-after-visibility-change) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-babel-pre-tangle-hook '(save-buffer) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-confirm-elisp-link-function 'yes-or-no-p > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > org-mode-hook '(#[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-show-block-all > append local] > 5] > #[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook > org-babel-show-result-all append local] > 5] > org-babel-result-hide-spec org-babel-hide-all-hashes) > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src-mode-configure-edit-buffer) > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-babel-load-languages '((R . t)) > org-confirm-shell-link-function 'yes-or-no-p > ) =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUGDU/AAoJENvXNx4PUvmChc4IALjwHPxvE8UcotAyht2oUGa1 CiEW8K9lf3q23ZHImZ6YOEN790AA89AHSDdRGko0TCuJE6bWS26ywiId/GIh5AbE CSAJgIf5cjJNleDmIVQzpnE10gb8iQ9/iZCNGqX4k/Ib8v1wnDftNez9WTkZ5Nwg gmfzabESWAbbgIXLkZrWcfC6etBA4A6iLxRNQfDVE6daObnubXJLEcFLpH+XXAT1 47Y3KUGAQAOPKNDPDpvPRPBIeCcqUNaqYm3dGIqGoLT3qnCvk28w2fTDDorFIYoe GNFfELhIe2zfoQR7ntF84ZgBJ5/1UGzKsg9PHgWbCA4vrV82drwAv+IjjlXnSUA= =L1LU -----END PGP SIGNATURE----- --=-=-=--