From: Eric Schulte <schulte.eric@gmail.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG babel :colnames
Date: Tue, 11 Feb 2014 13:18:09 -0700 [thread overview]
Message-ID: <871tz98ku6.fsf@gmail.com> (raw)
In-Reply-To: <87fvnp4wck.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Tue, 11 Feb 2014 14:23:07 +0100")
This bug looks to be specific to Babel's R support. E.g., it is not
present with shell code blocks.
#+name: testtable2
| a | b |
|---+---|
| 1 | 3 |
| 3 | 3 |
| 4 | 1 |
| 4 | 2 |
#+header: :var testtable=testtable2
#+begin_src sh :colnames yes
echo "$testtable"|tail -2
#+end_src
#+results:
| a | b |
|---+---|
| 4 | 1 |
| 4 | 2 |
#+header: :var testtable=testtable2
#+header: :var dummy=20
#+begin_src sh :colnames yes
echo "$testtable"|tail -2
#+end_src
#+results:
| a | b |
|---+---|
| 4 | 1 |
| 4 | 2 |
Best,
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> Hi all,
>
> there is a bug when it comes to babel not respecting :colnames when more
> variables are passed.
>
> Here is the MWE:
>
> --8<---------------cut here---------------start------------->8---
> #+name: testtable2
> | a | b |
> |---+---|
> | 1 | 3 |
> | 3 | 3 |
> | 4 | 1 |
> | 4 | 2 |
>
> #+header: :var testtable=testtable2
> #+begin_src R :colnames yes
> testtable[2:3,]
> #+end_src
>
> #+results:
> | a | b |
> |---+---|
> | 3 | 3 |
> | 4 | 1 |
>
> #+header: :var testtable=testtable2
> #+header: :var dummy=20
> #+begin_src R :colnames yes
> testtable[2:3,]
> #+end_src
>
> #+results:
> | X1 | X3 |
> |----+----|
> | 4 | 1 |
> | 4 | 2 |
> --8<---------------cut here---------------end--------------->8---
>
>
> Forgot to say in my last post:
> Org-mode version 8.2.5h (release_8.2.5h-581-g7b11ba.dirty @ /home/andreas/local/emacs/org-mode-install/lisp/)
> GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-12-22 on brahms, modified by Debian
>
>
> Regards,
> Andreas
>
>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
next prev parent reply other threads:[~2014-02-11 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 13:23 BUG babel :colnames Andreas Leha
2014-02-11 20:18 ` Eric Schulte [this message]
2014-02-11 23:08 ` Andreas Leha
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=871tz98ku6.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=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).