From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ahmadou Dicko Subject: Re: Different behavior of exported results in org-babel Date: Fri, 17 Jan 2014 19:19:28 +0000 Message-ID: References: <87y52e1lc1.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e012284f6c2798504f02f6bab Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Ex1-0007ja-DS for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 14:19:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4Ex0-0002SJ-5E for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 14:19:31 -0500 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:54587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Ewz-0002RO-Qk for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 14:19:30 -0500 Received: by mail-wg0-f47.google.com with SMTP id m15so4949418wgh.14 for ; Fri, 17 Jan 2014 11:19:29 -0800 (PST) In-Reply-To: <87y52e1lc1.fsf@alphaville.bos.redhat.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org --089e012284f6c2798504f02f6bab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for testing. As a workaround I will use your trick (in buffer evaluation before exporting) but I was thinking of writing a filter. On Fri, Jan 17, 2014 at 7:04 PM, Nick Dokos wrote: > Ahmadou Dicko writes: > > > Hi everyone, > > > > I use the latest version of org-mode (from github) and I update it dail= y. > > I noticed some changes recently in org-babel (ob-R). > > > > Here's a sample code to explain the problem : > > > > #+TITLE: Test export > > #+AUTHOR: Ahmadou H. DICKO > > #+PROPERTY: session *R* > > #+PROPERTY: cache yes > > #+PROPERTY: exports both > > #+PROPERTY: tangle yes > > #+OPTIONS: toc:nil > > > > * Minimal example > > This works quite well > > #+begin_src R :exports both :results output > > mtcars[1:2, 1:2] > > #+end_src > > > > I just want the output without code but I have this > > 'bf7c7b2c131fcf88c89639d10326a972f0ff25' before the code > > > #+begin_src R :exports results :results output > > mtcars[1:2, 1:2] > > #+end_src > > > > I used your reproducer (thanks for providing it!) and was able to > duplicate your results (more or less - I get this > > 7c7b2c131fcf88c89639d10326a972f0ff25]: > > before the second set of results). > > If I evaluate both code blocks by hand in the org buffer and > *then* export, I don't get the extra junk. > > > I use emacs 24.3.1, org-version 8.2.5f (updated this morning) and R > > 3.0.2 You can find attached the sample code and output, if you have > > something different please let me know. > > > > Nick > > > --=20 Ahmadou H. DICKO statistician economist (Ing=E9nieur Statisticien =C9conomiste) PhD candidate in Climate change economics Faculty of economics and managment - Cheikh Anta Diop University West African Science Service Center on Climate Change and Adaptated Land Use (WASCAL) Center for Development Research (ZEF) - University of Bonn email : ahmadou.dicko@ucad.edu.sn twitter : @dickoah github : github/dickoa tel : +221 33 827 55 16 portable: +221 77 123 81 69 --089e012284f6c2798504f02f6bab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for testing.
As a workaround I will use your tr= ick (in buffer evaluation before exporting) but I was thinking of writing a= filter.


On Fri, Jan 17, 2014 at 7:04 PM, Nick Dokos <ndokos@gmail.com> wrote:
Ahmadou Dicko <dicko.ahmadou@gmail.com> writes:

> Hi everyone,
>
> I use the latest version of org-mode (from github) and I update it dai= ly.
> I noticed some changes recently in org-babel (ob-R).
>
> Here's a sample code to explain the problem :
>
> #+TITLE: Test export
> #+AUTHOR: Ahmadou H. DICKO
> #+PROPERTY: session *R*
> #+PROPERTY: cache yes=A0
> #+PROPERTY: exports both
> #+PROPERTY: tangle yes
> #+OPTIONS: toc:nil
>
> * Minimal example
> =A0This works quite well
> #+begin_src R :exports both :results output
> mtcars[1:2, 1:2]
> #+end_src
>
> I just want the output without code but I have this
> 'bf7c7b2c131fcf88c89639d10326a972f0ff25' before the code

> #+begin_src R :exports results :results output=A0
> mtcars[1:2, 1:2]
> #+end_src
>

I used your reproducer (thanks for providing it!) and was able to
duplicate your results (more or less - I get this

=A0 =A07c7b2c131fcf88c89639d10326a972f0ff25]:

before the second set of results).

If I evaluate both code blocks by hand in the org buffer and
*then* export, I don't get the extra junk.

> I use emacs 24.3.1, org-version 8.2.5f (updated this morning) and R > 3.0.2 You can find attached the sample code and output, if you have > something different please let me know.
>

Nick





--
Ahmadou H. DICKO
statistician economist (Ing=E9nieur = Statisticien =C9conomiste)
PhD candidate in Climate change economics
= Faculty of economics and managment - Cheikh Anta Diop University
West African Science Service Center on Climate Change and Adaptated Land Us= e (WASCAL)
Center for Development Research (ZEF) - University of Bonn email : ah= madou.dicko@ucad.edu.sn
twitter : @dickoah
github : github/dickoa
tel : +221 33 827 55 16
portable: +221 = 77 123 81 69
--089e012284f6c2798504f02f6bab--