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:05:52 -0400 Message-ID: <8762nu9kv3.fsf@gmail.com> References: <87y60rpmjc.fsf@gmail.com> <87wrgbhz77.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaRcc-00063r-8g for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaRca-0006Xm-Qg for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:05:58 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:51142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaRca-0006XW-FH for emacs-orgmode@gnu.org; Sat, 25 Jun 2011 08:05:56 -0400 Received: by iyl8 with SMTP id 8so4014368iyl.0 for ; Sat, 25 Jun 2011 05:05:55 -0700 (PDT) In-Reply-To: <87wrgbhz77.fsf@gmail.com> (Eric Schulte's message of "Fri, 24 Jun 2011 11:11:52 -0700") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric Schulte Fri, 24 Jun 2011 11:11:52 -0700 eythanweg@gmail.com (Eythan Weg) writes: > 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? > Each code block can only return a single output type, so you will have Is this property fundamental, or temporary? to split your code block into two, however (given that you are using sessions) this should not affect the runtime behavior. The following will work... #+begin_src R :results output :session print(seq(1,10)) #+end_src #+begin_src R :file example.png :session plot(seq(1,10)) #+end_src Best -- Eric Thank you. Eythan