From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hajage Subject: Re: Babel: interweaving code and results? Date: Wed, 18 Aug 2010 15:28:44 +0200 Message-ID: References: <4C6BDCE3.9010903@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0111454543==" Return-path: Received: from [140.186.70.92] (port=49629 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlihW-0005wV-Hy for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlihV-0001mH-8f for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:29:06 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:43100) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlihV-0001m8-3R for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:29:05 -0400 Received: by fxm3 with SMTP id 3so263677fxm.0 for ; Wed, 18 Aug 2010 06:29:04 -0700 (PDT) In-Reply-To: <4C6BDCE3.9010903@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode@gnu.org --===============0111454543== Content-Type: multipart/alternative; boundary=001485f78ae8a2feb3048e190c0b --001485f78ae8a2feb3048e190c0b Content-Type: text/plain; charset=ISO-8859-1 Thanks! David On Wed, Aug 18, 2010 at 15:15, Erik Iverson wrote: > 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. > --001485f78ae8a2feb3048e190c0b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks!
David


On Wed, Aug 18, 2010 at 15:15, Erik Iver= son <eriki@ccbr.= umn.edu> wrote:
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
=A0 2+2
=A0 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.

--001485f78ae8a2feb3048e190c0b-- --===============0111454543== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0111454543==--