From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: [babel] html export of R data frame Date: Tue, 20 Jul 2010 07:57:48 +0530 Message-ID: <20100720022748.GA4367@panahar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob2W5-0003Hf-U2 for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 22:25:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob2W0-0001BK-7o for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 22:25:09 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:56838) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob2W0-0001Ax-1b for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 22:25:04 -0400 Received: by pxi7 with SMTP id 7so5100319pxi.0 for ; Mon, 19 Jul 2010 19:25:02 -0700 (PDT) Content-Disposition: inline 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 I have an R script which outputs a small table in the form of a dataframe. In org-babel, this dataframe is not displayed as an org table but simply as text laid out as it would be in an R session. When I export the output to html, I do not get an html table but only text. How do I make org-babel show a table instead of plain text? For example, take a simple code block like: #+BEGIN_SRC R :results output :exports both :session y x<-c(1:5) y<-x^2 data.frame(x,y) #+END_SRC Vikas