From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Babel: interweaving code and results? Date: Wed, 18 Aug 2010 08:15:15 -0500 Message-ID: <4C6BDCE3.9010903@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=38260 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OliTo-00030O-DG for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:14:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OliTn-0007bv-G6 for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:14:56 -0400 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:61511) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OliTn-0007bn-8W for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:14:55 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Hajage Cc: emacs-orgmode@gnu.org David, On 08/18/2010 08:09 AM, David Hajage wrote: > Hello, > > I am back with babel and R with a new question. Is it possible to > interweave each line of code with its results? > > An example to explain what I mean: > > #+SRCNAME: foo > #+BEGIN_SRC R :results output :exports results > 2+2 > 3+3 > #+END_SRC > > #+results: foo > : [1] 4 > : [1] 6 > > When exporting (to html or latex), I would like to print what is going > on in the R console. So, I would like: > > #+results: foo > :> 2+2 > : [1] 4 > :> 3+3 > : [1] 6 > > Is it possible, or eventualy planned for the futur? I think I put together a :results weave option a couple months ago that did just this. I'll have to look if I can find it, I'll let you know.