From: Brian Shine <brianshine@mac.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
Brian Shine <brianshine@mac.com>
Subject: Re: org-mode R using xtable produces strange output
Date: Tue, 20 Mar 2018 22:40:32 +0000 [thread overview]
Message-ID: <F8A7F48D-0009-47C9-9EE5-AC2DDD77AC9C@mac.com> (raw)
In-Reply-To: <5330988D-2C17-4A78-8CA3-6A3025D21FDB@ucsd.edu>
Brilliant! Thank you so much.
Best wishes,
Brian
> On 20 Mar 2018, at 16:47, Berry, Charles <ccberry@ucsd.edu> wrote:
>
>
>
>> On Mar 19, 2018, at 4:44 PM, Brian Shine <brianshine@mac.com> wrote:
>>
>> I am using xtable to produce summary tables of linear models, specifying the output as latex. If I just run the code in R, I get the correct output. However, the latex output in the org document contains a lot of “|”s. I think this is because the header of the table contains some code to make “p > |t|”, where the vertical lines are to indicate “absolute value of t”. My guess is that when the output is written to the results section, org interprets the “|” signs as an org-table and tries to be helpful by adding more of them to make up the correct number of columns.
>
>
> See
>
> (info "(org) results")
>
> and note the difference between `:results output' and `:results value' (the default).
>
> Since you want the printed version of the R object, you should use
>
> `:results output latex'
>
> to pass the printed output to the org #+Results or
>
> `:results raw :wrap export latex'
>
> to pass the unadorned value. In your use case they seem to produce the same #+Results.
>
> HTH,
>
> Chuck
prev parent reply other threads:[~2018-03-20 22:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-19 23:44 org-mode R using xtable produces strange output Brian Shine
2018-03-20 16:47 ` Berry, Charles
2018-03-20 22:40 ` Brian Shine [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=F8A7F48D-0009-47C9-9EE5-AC2DDD77AC9C@mac.com \
--to=brianshine@mac.com \
--cc=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/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).