From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: [babel] html export of R data frame Date: Mon, 19 Jul 2010 22:08:56 -1000 Message-ID: <82422340-6228-457E-A111-567D4E408F76@tsdye.com> References: <20100720022748.GA4367@panahar> <999EA819-B702-43C1-B825-7CCB32DDE9F8@tsdye.com> <20100720031301.GA6691@panahar> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44468 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob7su-0004ad-3b for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 04:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob7ss-0003KQ-VG for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 04:09:03 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:57501) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Ob7ss-0003Jw-MW for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 04:09:02 -0400 In-Reply-To: <20100720031301.GA6691@panahar> 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: Vikas Rawal Cc: Emacs-orgmode mailing list On Jul 19, 2010, at 5:13 PM, Vikas Rawal wrote: >> >> Is this what you want? >> >> #+BEGIN_SRC R :results value :exports both > > Indeed. Except that, in the functional mode, org-babel shows me output > of only the last command, and not the intermediate commands. > > I am not too happy with that. When I do my data analysis, sometimes a > program gives out several outputs. Let me see how would I handle that > in the functional mode. > > Thanks anyway, > > Vikas > Aloha Vikas, Here is one way to see intermediate values in functional mode. #+srcname: vikas-x #+begin_src R x<-c(1:5) #+end_src #+results: vikas-x | 1 | | 2 | | 3 | | 4 | | 5 | #+srcname: vikas-y #+begin_src R :var x=vikas-x y<-x^2 #+end_src #+results: vikas-y | 1 | | 4 | | 9 | | 16 | | 25 | #+BEGIN_SRC R :results value :var x= vikas-x :var y= vikas-y :exports both data.frame(x,y) #+END_SRC #+results: | 1 | 1 | | 2 | 4 | | 3 | 9 | | 4 | 16 | | 5 | 25 | All the best, Tom