From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)] Date: Sat, 23 May 2015 21:01:09 -1000 Message-ID: References: <87y4kefvo9.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwPua-0004J7-By for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwPuW-0003wL-C7 for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:01:28 -0400 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:51975) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YwPuW-0003w3-4D for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:01:24 -0400 In-Reply-To: <87y4kefvo9.fsf@posteo.de> (Titus von der Malsburg's message of "Sat, 23 May 2015 21:26:14 -0700") 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: Titus von der Malsburg Cc: emacs-orgmode@gnu.org Titus von der Malsburg writes: > I=E2=80=99m exporting the following document to LaTeX > > #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes > x <- data.frame(a=3D1:2, b=3D3:4) > rownames(x) <- c("One:", "Two:") > #+END_SRC > > and expect a table with the following layout: > > a b > One: 1 3 > Two: 2 4 > > Instead I got this: > > x > 1 One: > 2 Two: You got the result of rownames(x), which is expected. The table you expect is given by the following code: #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes x <- data.frame(a=3D1:2, b=3D3:4) rownames(x) <- c("One:", "Two:") x #+END_SRC #+results: | | a | b | |------+---+---| | One: | 1 | 3 | | Two: | 2 | 4 | All the best, Tom --=20 Thomas S. Dye http://www.tsdye.com