From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hajage Subject: Babel: interweaving code and results? Date: Wed, 18 Aug 2010 15:09:29 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0774791445==" Return-path: Received: from [140.186.70.92] (port=51606 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OliOu-0001zH-5z for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:09:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OliOs-0006ov-Nt for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:09:52 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:55580) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OliOs-0006oL-JV for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 09:09:50 -0400 Received: by fxm3 with SMTP id 3so250990fxm.0 for ; Wed, 18 Aug 2010 06:09:49 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============0774791445== Content-Type: multipart/alternative; boundary=001485f5b1eccb5d66048e18c75e --001485f5b1eccb5d66048e18c75e Content-Type: text/plain; charset=ISO-8859-1 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? Thank you very much. David --001485f5b1eccb5d66048e18c75e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=A0

I am back with babel and R with a new question= . Is it possible to interweave=A0each line of code with its results?

An example to explain what I mean:=

= #+SRCNAME: foo
#+BEGIN_SRC R :results output :exports resu= lts
=A0=A02+2
=A0=A03+3
#+END_SRC=

#+results: foo
: [1] 4
: [1] 6

When exporting (to html or lat= ex), I would like to print what is going on in the R console. So, I would l= ike:

#+results: foo
:> 2+2
: [1] 4
:> 3+3
: [1] 6

Is it possible, or eventualy= planned for the futur?

Thank you very much.
David
--001485f5b1eccb5d66048e18c75e-- --===============0774791445== 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 --===============0774791445==--