From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: org tables into R?
Date: Sun, 04 Jan 2015 10:01:44 +0000 [thread overview]
Message-ID: <olubnmehnjr.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: B874ADA0-1879-4021-B873-035AC85C4F47@agrarianresearch.org
Hi Vikas,
Thanks for following up on this issue!
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> Michael Gauland <mikelygee@gmail.com> 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
next prev parent reply other threads:[~2015-01-04 10:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-02 19:57 org tables into R? Michael Gauland
2015-01-02 20:13 ` Andreas Leha
2015-01-02 22:45 ` Vikas Rawal
2015-01-04 10:01 ` Andreas Leha [this message]
2015-01-05 0:10 ` Aaron Ecay
2015-01-05 11:48 ` Nicolas Goaziou
2015-01-06 4:27 ` Aaron Ecay
2015-01-06 23:08 ` Nicolas Goaziou
2015-01-06 23:17 ` Aaron Ecay
2015-01-06 23:38 ` Nicolas Goaziou
2015-01-06 10:14 ` Andreas Leha
2015-01-06 11:02 ` Rainer M Krug
2015-01-06 12:07 ` Andreas Leha
2015-01-06 13:37 ` Rainer M Krug
2015-01-06 17:49 ` Aaron Ecay
2015-01-07 9:01 ` Rainer M Krug
2015-01-04 3:19 ` Michael Gauland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=olubnmehnjr.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).