From mboxrd@z Thu Jan 1 00:00:00 1970 From: eythanweg@gmail.com (Eythan Weg) Subject: Re: babel: textual output and graphic results Date: Sat, 25 Jun 2011 08:00:53 -0400 Message-ID: <87d3i29l3e.fsf@gmail.com> References: <87y60rpmjc.fsf@gmail.com> <87iprvph8y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaRXs-00056f-5y for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:01:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaRXn-0005R1-6N for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:01:01 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:58057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaRXm-0005Pq-Jt for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:00:59 -0400 Received: by iyl8 with SMTP id 8so4011797iyl.0 for ; Sat, 25 Jun 2011 05:00:57 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Fri, 24 Jun 2011 14:28:41 +0200") 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: Rainer M Krug Cc: emacs-orgmode True again. It solves the problem by bypassing a babel's weakness, I think. Eythan Rainer M Krug Fri, 24 Jun 2011 14:28:41 +0200 On Fri, Jun 24, 2011 at 2:05 PM, Eythan Weg wrote: Thank you. True. But, I would like, if possible, to have the link to the saved plot as a link in the output, for free. Just add it as a cat() statement: #+begin_src R :results output :session print(seq(1,10)) pdf("ThePlot.pdf") plot(seq(1,10)) dev.off() cat("[[./ThePlot.pdf]]") #+end_src Eythan Rainer M Krug Fri, 24 Jun 2011 13:18:36 +0200 On Fri, Jun 24, 2011 at 12:10 PM, Eythan Weg wrote: Hi, How could I effect the plot saved in a file and the output produced shown in the buffer by using a single execution of R in the following snippet? Why not the old R way: #+begin_src R :results output :session print(seq(1,10)) pdf("ThePlot.pdf") plot(seq(1,10)) dev.off() #+end_src Rainer Thank you. Eythan -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug