From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco =?ISO-8859-1?B?QmFyYuByYQ==?= Subject: Re: org-babel R ascii results: unable to export table Date: Mon, 4 May 2015 11:15:13 +0200 Message-ID: <20150504111513.1f9cca8e@caprica> References: <20150430133238.3452b85d@caprica> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpCTA-0001ro-Ct for emacs-orgmode@gnu.org; Mon, 04 May 2015 05:15:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpCT7-0004JK-0L for emacs-orgmode@gnu.org; Mon, 04 May 2015 05:15:20 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:37286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpCT6-0004JC-PO for emacs-orgmode@gnu.org; Mon, 04 May 2015 05:15:16 -0400 Received: by widdi4 with SMTP id di4so103194415wid.0 for ; Mon, 04 May 2015 02:15:15 -0700 (PDT) Received: from caprica (dynamic-adsl-94-37-99-231.clienti.tiscali.it. [94.37.99.231]) by mx.google.com with ESMTPSA id xy5sm16176215wjc.35.2015.05.04.02.15.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 02:15:14 -0700 (PDT) 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: emacs-orgmode Mailinglist Hi, sorry for replying so late. Thank you very much, your answer pointed me in the right direction (I solved with :results output drawer) Marco. Il giorno Thu, 30 Apr 2015 11:45:20 -0400 Ista Zahn ha scritto: > Hi Marco, >=20 > Here is a fairly minimal example to get you started: >=20 > #### Begin Example #### >=20 > #+PROPERTY: header-args:R :session *R* :results output > drawer :exports both >=20 > #+BEGIN_SRC R > library(ascii) > options(asciiType=3D"org") > #+END_SRC >=20 > #+BEGIN_SRC R > ascii(mtcars[1:5, 1:5]) > #+END_SRC >=20 > #+BEGIN_SRC R > ascii(summary(lm(hp ~ wt, data =3D mtcars))) > #+END_SRC >=20 >=20 > ### End Example >=20 > First execute the code blocks with 'M-x org-babel-execute-buffer' then > export. For more control I would refer to the manual section at > http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Sour= ce-Code >=20 > Best, > Ista >=20 > On Thu, Apr 30, 2015 at 7:32 AM, Marco Barb=E0ra > wrote: > > Dear org-mode community, > > > > First, I want to apologize for subscribing mainly because I need > > help. > > > > I recently started using org-mode as a tool for reproducible > > research (trying to do R-based literate programming). > > > > What I'm trying to is explained in this example file: > > http://orgmode.org/worg/org-contrib/babel/examples/ascii.org > > which I downloaded trying to understand how to export R output > > produced with the R 'ascii' package. > > > > Running this example, after adding ":exports results" to > > "ascii-example3" block, _on the first attempt_, the output was > > exported as an odt table (i was happy, this is my desired outcome). > > But afterwards, any subsequent attempts to export the same block > > resulted in a "verbatim" block, which is the same problem I was > > trying to solve. > > > > I tried to export as a latex buffer too, and even there i got a > > verbatim environment. > > > > I don't think it is bug, it is probably that I still don't > > understand org-babel well. > > > > Sorry not to provide any other sample code, but I wouldn't know > > where to begin. > > > > Any advice would be very appreciated. > > > > Thank you very much > > > > Marco Barbara > > > > > >