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 10:03:23 -0500 Message-ID: <4C6BF63B.20803@ccbr.umn.edu> References: <4C6BDCE3.9010903@ccbr.umn.edu> <87k4no0ye5.fsf@stats.ox.ac.uk> 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=57993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlkAr-0000td-T7 for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlkAq-0000AL-6A for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:03:29 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:4302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlkAq-0000A8-1j for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:03:28 -0400 In-Reply-To: <87k4no0ye5.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: David Hajage , emacs-orgmode@gnu.org Dan Davison wrote: > Erik Iverson writes: > >> 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? > > Hi David, > > This is actually quite easy, although I don't think anyone's flagged > this possibility up: just do > > (setq org-babel-R-command "R --silent --no-save") Yes, that's essentially what I ended up doing it appears. I never actually wrote code to process an option for it though.