emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: Recent bug? in R source blocks generating images
Date: Thu, 7 Apr 2016 23:06:13 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1604072251181.9305@shell.miskatonic.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1604072249180.9305@shell.miskatonic.org>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1097 bytes --]

Sorry about that; hit send too soon.

There's something odd happening to me tonight with R source blocks and :session.

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 get an 
error.

#+BEGIN_SRC R :session :results graphics :file example.png
plot(1)
#+END_SRC

The error is

+ + Error: unexpected symbol in:
"plot(1)
},error=function(e){plot(x=-1:1, y=-1:1, type='n"

That error= bit at the end looks related to my plot() example, but I don't think 
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 working 
earlier this week, but I've updated since then.  I refreshed everything 
(including R packages) and still get the error.  I looked at the recent Org 
commits but don't see what might have done it, but I also don't think I'm doing 
anything wrong.

Bill
-- 
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

  reply	other threads:[~2016-04-08  3:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-08  2:50 Recent bug in R source blocks generating images William Denton
2016-04-08  3:06 ` William Denton [this message]
2016-04-08  8:34   ` Recent bug? " Rainer M Krug
2016-04-08 15:38     ` William Denton
2016-04-09  4:05     ` William Denton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.02.1604072251181.9305@shell.miskatonic.org \
    --to=wtd@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).