* Bug: Babel :var order affects :colnames [9.2 (9.2-41-g010a35-elpaplus @ /home/dk/.emacs.d/elpa/org-plus-contrib-20190122/)]
@ 2019-01-24 9:53 Thomas S. Dye
0 siblings, 0 replies; 2+ messages in thread
From: Thomas S. Dye @ 2019-01-24 9:53 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen
and
what in fact did happen. You don't know how to make a good
report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
I expect =colnames-bug-bad= to parse =test-table= like
=colnames-bug-good=. The only difference is the order of :var
assignments.
**** ECM
#+name: colnames-bug-bad
#+header: :var str="Foo" :var tab=test-table
#+header: :colnames yes
#+BEGIN_SRC R
data.frame(tab)
#+END_SRC
#+RESULTS: colnames-bug-bad
| cell.1 | cell.2 |
|--------+--------|
#+name: colnames-bug-good
#+header: :var tab=test-table :var str="Foo"
#+header: :colnames yes
#+BEGIN_SRC R
data.frame(tab)
#+END_SRC
#+RESULTS: colnames-bug-good
| head.1 | head.2 |
|--------+--------|
| cell.1 | cell.2 |
#+name: test-table
| head.1 | head.2 |
|--------+--------|
| cell.1 | cell.2 |
Let me know if you have questions.
All the best,
Tom
Emacs : GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+
Version 3.22.30)
of 2018-05-28
Package: Org mode version 9.2 (9.2-41-g010a35-elpaplus @
/home/dk/.emacs.d/elpa/org-plus-contrib-20190122/)
--
Thomas S. Dye
http://tsdye.online/tsdye
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: Babel :var order affects :colnames [9.2 (9.2-41-g010a35-elpaplus @/home/dk/.emacs.d/elpa/org-plus-contrib-20190122/)]
@ 2019-01-28 23:34 Thomas S. Dye
0 siblings, 0 replies; 2+ messages in thread
From: Thomas S. Dye @ 2019-01-28 23:34 UTC (permalink / raw)
To: tsd; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 433 bytes --]
Aloha all,
Answering myself. This bug is known and was discussed several years
ago:
From: Myles English
Subject: Re: [O] babel R: should/does order of parameters matter?
Date: Tue, 29 Mar 2011 16:57:37 +0100
Apparently, ob-R wants tables to be passed to parameters that are early
in the parameter list.
Also, ob-R expects all the cells in a table to be non-empty. An empty
table cell raises Cain.
Argh.
All the best,
Tom
[-- Attachment #2: Type: text/html, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-28 23:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-28 23:34 Bug: Babel :var order affects :colnames [9.2 (9.2-41-g010a35-elpaplus @/home/dk/.emacs.d/elpa/org-plus-contrib-20190122/)] Thomas S. Dye
-- strict thread matches above, loose matches on Subject: below --
2019-01-24 9:53 Bug: Babel :var order affects :colnames [9.2 (9.2-41-g010a35-elpaplus @ /home/dk/.emacs.d/elpa/org-plus-contrib-20190122/)] Thomas S. Dye
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).