From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg 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: Sun, 24 May 2015 00:31:05 -0700 Message-ID: <87wpzyfn46.fsf@posteo.de> References: <87y4kefvo9.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwQNQ-0007GX-DN for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:31:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwQNM-0003SI-Dt for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:31:16 -0400 Received: from mx02.posteo.de ([89.146.194.165]:40570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwQNM-0003SD-7r for emacs-orgmode@gnu.org; Sun, 24 May 2015 03:31:12 -0400 In-reply-to: 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-05-24 Sun 00:01, Thomas S. Dye wrote: > 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: Ah, I see, thanks. Although the results is still somewhat unexpected. c("One:", "Two:") doesn=E2=80=99t have rownames and colnames. = So org apparently made them up when generating the table. Titus > > #+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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEbBAEBAgAGBQJVYX46AAoJEK40WfPGE2idMb0H+OPFXpqnmdCl7F/szh2wENzH MWNYqN917gFq9MyyE9LdbblxIe4i8mC/mhDXVRGXw8QXsxHHxD5Ldl6KkNel1QAl CjhXjsar3HI+zQzsvriW3UgwWs+yYY5RDfajEJhwiznXx3HhZAamUAyUut2Lb1bC aiK2QNUpwAm/a1ccE0zJLVPX/yG40OpXdTd5dDoPBQGzWiD0vfQa1BzktQuKf2lD JKhpUkhmz6vbaEgl9jghDTUNeDcYTK+WhsjeQCFXyH65yHt5e2nQWByGBHyIBYAm N2sKuUsdf17uu2VsdMFL+HLq0uJJDGNcgiXh1gDqJPxLU2wLiDoXHHSz52sp2Q== =ZGF3 -----END PGP SIGNATURE----- --=-=-=--