emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] BUG babel :colnames


From: Eric Schulte
Subject: Re: [O] BUG babel :colnames
Date: Tue, 11 Feb 2014 13:18:09 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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 <address@hidden> 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



reply via email to

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