From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Shine Subject: Re: org-mode R using xtable produces strange output Date: Tue, 20 Mar 2018 22:40:32 +0000 Message-ID: References: <27130615-8997-4101-9888-35829EE3D968@mac.com> <5330988D-2C17-4A78-8CA3-6A3025D21FDB@ucsd.edu> Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyPvu-0002bc-9u for emacs-orgmode@gnu.org; Tue, 20 Mar 2018 18:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyPvr-0001kg-7G for emacs-orgmode@gnu.org; Tue, 20 Mar 2018 18:40:42 -0400 Received: from pv38p41im-ztdg02061201.me.com ([17.133.179.23]:32360) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyPvr-0001kI-12 for emacs-orgmode@gnu.org; Tue, 20 Mar 2018 18:40:39 -0400 Received: from process-dkim-sign-daemon.pv38p41im-ztdg02061201.me.com by pv38p41im-ztdg02061201.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P5W00F00UUK6V00@pv38p41im-ztdg02061201.me.com> for emacs-orgmode@gnu.org; Tue, 20 Mar 2018 22:40:37 +0000 (GMT) In-reply-to: <5330988D-2C17-4A78-8CA3-6A3025D21FDB@ucsd.edu> 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" To: "Berry, Charles" Cc: "Liste-emacs-orgmode@gnu.org" , Brian Shine Brilliant! Thank you so much. Best wishes, Brian > On 20 Mar 2018, at 16:47, Berry, Charles wrote: >=20 >=20 >=20 >> On Mar 19, 2018, at 4:44 PM, Brian Shine wrote: >>=20 >> 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 =E2=80=9C|=E2=80=9Ds. I think this is because the header of = the table contains some code to make =E2=80=9Cp > |t|=E2=80=9D, where = the vertical lines are to indicate =E2=80=9Cabsolute value of t=E2=80=9D. = My guess is that when the output is written to the results section, org = interprets the =E2=80=9C|=E2=80=9D signs as an org-table and tries to be = helpful by adding more of them to make up the correct number of columns.=20= >=20 >=20 > See >=20 > (info "(org) results") >=20 > and note the difference between `:results output' and `:results value' = (the default). >=20 > Since you want the printed version of the R object, you should use=20 >=20 > `:results output latex' >=20 > to pass the printed output to the org #+Results or=20 >=20 > `:results raw :wrap export latex' >=20 > to pass the unadorned value. In your use case they seem to produce = the same #+Results. >=20 > HTH, >=20 > Chuck