emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org tables into R?


From: Andreas Leha
Subject: Re: [O] org tables into R?
Date: Sun, 04 Jan 2015 10:01:44 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

Hi Vikas,

Thanks for following up on this issue!

Vikas Rawal <address@hidden> writes:
>     Michael Gauland <address@hidden> writes:
>     
>     I want to use an R block to manipulate data from an org table, but
>         I'm not
>         getting what I expect. 
>         
>         
>         
>
>         
>         What am I doing wrong?
>         
>
>     I believe, that this is a bug that has been reported already [1]
>     and is
>     still open.
>     
>     
>
> The code sent by Michael works fine for me (that it, the org table is
> read as a data.frame).
>
> It may help to upgrade your org-mode. What version are you on?
>
> Vikas

It turns out I cannot reproduce it either with emacs -Q.

I investigated and found that the culprit is an export filter I have
defined that replaces tabs with spaces:

--8<---------------cut here---------------start------------->8---
(defun my-e-beamer-final-filter (contents backend info)
  (replace-regexp-in-string "\t" "        " contents))
(add-to-list 'org-export-filter-final-output-functions 
'my-e-beamer-final-filter)
--8<---------------cut here---------------end--------------->8---

Now, I consider that a bug as well.  I am not exporting anything, here.
But I am merely evaluating a code block.  Export filters should not
interfere.  Plus, it used to work (unfortunately, I do not have the time
to bisect right now).

So, why are export filters involved?  And can that be disabled?

Regards,
Andreas



PS: Here is my environment:

#+begin_src emacs-lisp
  (concat
   (replace-regexp-in-string " on .*" "" (emacs-version))
   "\n"
   (replace-regexp-in-string " @.*" "" (org-version nil t)))
#+end_src

#+results:
: GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.3.0, NS appkit-1265.21 Version 
10.9.4 (Build 13E28))
:  of 2014-09-02
: Org-mode version 8.3beta (release_8.3beta-709-g3e64f6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]