From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel: textual output and graphic results Date: Fri, 24 Jun 2011 11:11:52 -0700 Message-ID: <87wrgbhz77.fsf@gmail.com> References: <87y60rpmjc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaAw6-0001tF-3I for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:16:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaAw4-0006cN-5V for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:16:57 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:41276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaAw3-0006c7-M6 for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:16:55 -0400 Received: by pwi12 with SMTP id 12so2401875pwi.0 for ; Fri, 24 Jun 2011 11:16:54 -0700 (PDT) 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: Eythan Weg Cc: emacs-orgmode@gnu.org 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 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 > > #+begin_src R :results output :session > print(seq(1,10)) > plot(seq(1,10)) > #+end_src > > Thank you. > Eythan > > -- Eric Schulte http://cs.unm.edu/~eschulte/