From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: ob-R, problem with try/catch Date: Thu, 23 Apr 2015 23:39:42 +0100 Message-ID: <87h9s65v0x.fsf@gmail.com> References: <83477C11-94B6-467B-8CD5-77976FE83C31@gmail.com> <0A59ABA8-865B-44CE-823A-0CC168983981@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlPme-0007BF-PW for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:39:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlPmb-00079S-JJ for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:39:48 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:38415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlPmb-00079O-CO for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:39:45 -0400 Received: by wiun10 with SMTP id n10so1441744wiu.1 for ; Thu, 23 Apr 2015 15:39:44 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" , Rainer M Krug Cc: Org-mode , "Charles C. Berry" Hi Tom, 2015ko apirilak 23an, "Thomas S. Dye"-ek idatzi zuen: >=20 > 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 =E2=80=93 I= MO 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=E2=80=99s a code block that can be adapted to test various combination= s: #+begin_src R :results output graphics :file foo.png :session *foo* library(ggplot2) ggplot(data.frame(x =3D rnorm(10), y =3D rnorm(10)), aes(x =3D x, y =3D y)) + geom_point() #+end_src --=20 Aaron Ecay