From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: import R data frame into org-mode table Date: Mon, 29 Jul 2013 17:40:27 -0400 Message-ID: <87a9l5avuc.fsf@gmail.com> References: <87mwpket4b.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3vBO-0003BF-IL for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 17:40:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3vBI-0005aw-GX for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 17:40:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:37061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3vBI-0005ad-3a for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 17:40:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V3vBH-0004TN-0Z for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 23:40:39 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Jul 2013 23:40:39 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Jul 2013 23:40:39 +0200 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: emacs-orgmode@gnu.org "Cook, Malcolm" writes: > > Indeed, thanks, and, my worked out example follows using emacs 2.18.9 and org-mode version 8.0.6 > 2.18.9? > #+LATEX: \listoftables > #+LaTeX_HEADER: \usepackage{longtable} > #+name: longtabletest > #+CAPTION: test of longtable caption > #+begin_src R :results value :colnames yes > data.frame(num=1:260,alpha=rep(LETTERS,10)) > #+end_src > > #+RESULTS: > #+attr_latex: :environment longtable > | num | alpha | > |-----+-------| > | 1 | A | > | 2 | B | > ... Does this really produce a table caption for you when you export to latex? And does the attr_latex line stay there at the top of the table when the code block is evaluated? For me, the answers are "no" and "no". I have to rewrite it as follows in order for it to work: > #+begin_src R :results value :colnames yes > data.frame(num=1:260,alpha=rep(LETTERS,10)) > #+end_src > > #+CAPTION: test of longtable caption > #+attr_latex: :environment longtable > #+RESULTS: > | num | alpha | > |-----+-------| > | 1 | A | > | 2 | B | -- Nick