From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Denton Subject: Recent bug? in R source blocks generating images Date: Thu, 7 Apr 2016 23:06:13 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="658601964-1328085288-1460084773=:9305" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoMkT-0007Yd-7M for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 23:06:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoMkQ-0005gV-1n for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 23:06:17 -0400 Received: from shell.miskatonic.org ([65.39.236.119]:59636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoMkP-0005gR-UB for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 23:06:13 -0400 Received: from localhost (localhost [127.0.0.1]) by shell.miskatonic.org (Postfix) with ESMTP id 506E7FA0CE3 for ; Thu, 7 Apr 2016 23:06:13 -0400 (EDT) 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" To: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --658601964-1328085288-1460084773=:9305 Content-Type: TEXT/PLAIN; format=flowed; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry about that; hit send too soon. There's something odd happening to me tonight with R source blocks and :s= ession. This works, and generates an image: #+BEGIN_SRC R :results graphics :file example.png plot(1) #+END_SRC But if I start an R session (M-x R) and then run this, with :session, I g= et an=20 error. #+BEGIN_SRC R :session :results graphics :file example.png plot(1) #+END_SRC The error is + + Error: unexpected symbol in: "plot(1) },error=3Dfunction(e){plot(x=3D-1:1, y=3D-1:1, type=3D'n" That error=3D bit at the end looks related to my plot() example, but I do= n't think=20 it is: the same error appears if I use ggplot2 (which is how I noticed it= ). This is with Emacs and Org compiled from current source trees. It was wo= rking=20 earlier this week, but I've updated since then. I refreshed everything=20 (including R packages) and still get the error. I looked at the recent O= rg=20 commits but don't see what might have done it, but I also don't think I'm= doing=20 anything wrong. Bill --=20 William Denton =E2=86=94 Toronto, Canada =E2=86=94 https://www.miskaton= ic.org/ --658601964-1328085288-1460084773=:9305--