From: Nick Dokos <nicholas.dokos@hp.com>
To: Neuwirth Erich <erich.neuwirth@univie.ac.at>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: R code, LaTex export of tables
Date: Fri, 21 Dec 2012 14:14:02 -0500 [thread overview]
Message-ID: <16481.1356117242@alphaville> (raw)
In-Reply-To: Message from Neuwirth Erich <erich.neuwirth@univie.ac.at> of "Fri, 21 Dec 2012 17:08:43 +0100." <674B2282-073F-4AE2-ACED-528AE765A740@univie.ac.at>
Neuwirth Erich <erich.neuwirth@univie.ac.at> 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"?
>
>
prev parent reply other threads:[~2012-12-21 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 16:08 R code, LaTex export of tables Neuwirth Erich
2012-12-21 19:14 ` Nick Dokos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16481.1356117242@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=erich.neuwirth@univie.ac.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).