> On Mar 19, 2018, at 4:44 PM, Brian Shine <briansh...@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