emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Recent bug in R source blocks generating images
@ 2016-04-08  2:50 William Denton
  2016-04-08  3:06 ` Recent bug? " William Denton
  0 siblings, 1 reply; 5+ messages in thread
From: William Denton @ 2016-04-08  2:50 UTC (permalink / raw)
  To: emacs-orgmode

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

This is

#+BEGIN_SRC R :session :results graphics :file example.png :width 800 :height 400
library(ggplot2)
ggplot(mpg, aes(class)) + geom_bar()
#+END_SRC


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Recent bug? in R source blocks generating images
  2016-04-08  2:50 Recent bug in R source blocks generating images William Denton
@ 2016-04-08  3:06 ` William Denton
  2016-04-08  8:34   ` Rainer M Krug
  0 siblings, 1 reply; 5+ messages in thread
From: William Denton @ 2016-04-08  3:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recent bug? in R source blocks generating images
  2016-04-08  3:06 ` Recent bug? " William Denton
@ 2016-04-08  8:34   ` Rainer M Krug
  2016-04-08 15:38     ` William Denton
  2016-04-09  4:05     ` William Denton
  0 siblings, 2 replies; 5+ messages in thread
From: Rainer M Krug @ 2016-04-08  8:34 UTC (permalink / raw)
  To: William Denton; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1926 bytes --]

William Denton <wtd@pobox.com> writes:

> 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.

Working for me on

OS X El Capitan
GNU Emacs 25.0.92.1 (x86_64-apple-darwin15.3.0, NS appkit-1404.34 Version 10.11.3 (Build 15D21)) of 2016-03-07
Org-mode version 8.3.4 (release_8.3.4-702-gcd47ab @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)

but not working anymore on

Org-mode version 8.3.4 (release_8.3.4-709-g519f78 @/Users/rainerkrug/.emacs.d/org-mode/lisp/)

than I went back to

Org-mode version 8.3.4 (release_8.3.4-702-gcd47ab @/Users/rainerkrug/.emacs.d/org-mode/lisp/)

and it was not working either. But there was an update of ESS at the
same time which should have caused this.

OK - commit 9be858b of ESS is still fine.


Could you please submit this to the ESS list?


Cheers,

Rainer

>
> Bill

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recent bug? in R source blocks generating images
  2016-04-08  8:34   ` Rainer M Krug
@ 2016-04-08 15:38     ` William Denton
  2016-04-09  4:05     ` William Denton
  1 sibling, 0 replies; 5+ messages in thread
From: William Denton @ 2016-04-08 15:38 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

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

On 8 April 2016, Rainer M Krug wrote:

> than I went back to
>
> Org-mode version 8.3.4 (release_8.3.4-702-gcd47ab @/Users/rainerkrug/.emacs.d/org-mode/lisp/)
>
> and it was not working either. But there was an update of ESS at the
> same time which should have caused this.
>
> OK - commit 9be858b of ESS is still fine.
>
> Could you please submit this to the ESS list?

Thanks for looking.  I've reported this to the ESS list.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recent bug? in R source blocks generating images
  2016-04-08  8:34   ` Rainer M Krug
  2016-04-08 15:38     ` William Denton
@ 2016-04-09  4:05     ` William Denton
  1 sibling, 0 replies; 5+ messages in thread
From: William Denton @ 2016-04-09  4:05 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

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

On 8 April 2016, Rainer M Krug quoted me:

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

This is fixed now.  It was a problem with ESS.  Thanks for the pointer.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-09  4:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08  2:50 Recent bug in R source blocks generating images William Denton
2016-04-08  3:06 ` Recent bug? " William Denton
2016-04-08  8:34   ` Rainer M Krug
2016-04-08 15:38     ` William Denton
2016-04-09  4:05     ` William Denton

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).