[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ob-R, problem with try/catch
From: |
Aaron Ecay |
Subject: |
Re: [O] ob-R, problem with try/catch |
Date: |
Thu, 23 Apr 2015 23:39:42 +0100 |
User-agent: |
Notmuch/0.19+52~g1722ea2 (http://notmuchmail.org) Emacs/25.0.50.4 (x86_64-unknown-linux-gnu) |
Hi Tom,
2015ko apirilak 23an, "Thomas S. Dye"-ek idatzi zuen:
>
> IIRC :results output graphics is needed for the ggplot package.
Hmm. This is the case if the code is *not* evaluated in a session. In
a session, either value or output result types work. (All this has been
tested with a recent master version.) An unfortunate situation – IMO
the value type ought to work outside of a session, provided that the
value of the last expression in the block is a ggplot object.
Here’s a code block that can be adapted to test various combinations:
#+begin_src R :results output graphics :file foo.png :session *foo*
library(ggplot2)
ggplot(data.frame(x = rnorm(10), y = rnorm(10)),
aes(x = x, y = y)) +
geom_point()
#+end_src
--
Aaron Ecay
- [O] ob-R, problem with try/catch, Thomas S. Dye, 2015/04/22
- Re: [O] ob-R, problem with try/catch, Charles C. Berry, 2015/04/22
- Re: [O] ob-R, problem with try/catch, Charles C. Berry, 2015/04/23
- Re: [O] ob-R, problem with try/catch, Rainer M Krug, 2015/04/23
- Re: [O] ob-R, problem with try/catch, Thomas S. Dye, 2015/04/23
- Re: [O] ob-R, problem with try/catch,
Aaron Ecay <=
- Re: [O] ob-R, problem with try/catch, Thomas S. Dye, 2015/04/23
- Re: [O] ob-R, problem with try/catch, Nicolas Goaziou, 2015/04/26
- Re: [O] ob-R, problem with try/catch, Charles C. Berry, 2015/04/26
- Re: [O] ob-R, problem with try/catch, Nicolas Goaziou, 2015/04/26
Re: [O] ob-R, problem with try/catch, Thomas S. Dye, 2015/04/23