From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: R code, LaTex export of tables Date: Fri, 21 Dec 2012 14:14:02 -0500 Message-ID: <16481.1356117242@alphaville> References: <674B2282-073F-4AE2-ACED-528AE765A740@univie.ac.at> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm82t-0005UQ-JH for emacs-orgmode@gnu.org; Fri, 21 Dec 2012 14:14:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tm82n-0000bS-MP for emacs-orgmode@gnu.org; Fri, 21 Dec 2012 14:14:11 -0500 Received: from g1t0027.austin.hp.com ([15.216.28.34]:13683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm82n-0000bN-Hu for emacs-orgmode@gnu.org; Fri, 21 Dec 2012 14:14:05 -0500 In-Reply-To: Message from Neuwirth Erich of "Fri, 21 Dec 2012 17:08:43 +0100." <674B2282-073F-4AE2-ACED-528AE765A740@univie.ac.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Neuwirth Erich Cc: Org Mode Neuwirth Erich wrote: > The following piece of code > produced nicely formatted table > some time ago when exported through LaTex. > It comes from > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html > > #+BEGIN_SRC R :results output org :exports both Try #+BEGIN_SRC R :results output raw :exports both HTH, Nick > library(ascii) > a <- runif(100) > c <- "Quantiles of 100 random numbers" > b <- ascii(quantile(a),header=TRUE,include.colnames=TRUE) > print(b,type="org") > rm(a,b,c) > #+END_SRC > > When I tried again now, it renders the table as org source code for > tables > |0% |25% |50% |75% |100%| > |------+------+------+------+------| > | 0.01 | 0.26 | 0.51 | 0.76 | 1.00 | > > And does not format it nicely. > How can I make this work "the old way"? > >