From: ian martins <ianxm@jhu.edu>
To: emacs-orgmode@gnu.org
Subject: org-babel :colnames yes
Date: Thu, 28 May 2020 07:48:00 -0400 [thread overview]
Message-ID: <CAC=rjb56PC+dazpDtV=Je-+POWaZ7z_O3Bbt-yCQpgHsmqCZJg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
Hello, I'm trying to figure out how to tell org that the first row of a src
block result is a table header.
from readthedocs
<https://org-babel.readthedocs.io/en/latest/header-args/#colnames> it looks
like ":colnames yes" should do this, but I haven't been able to get it to
work, and the code
<https://code.orgmode.org/bzg/org-mode/src/master/lisp/ob-core.el#L1671>
doesn't appear to want that to happen. maybe that is special handling for R
<https://code.orgmode.org/bzg/org-mode/src/master/lisp/ob-R.el#L164>.
#+BEGIN_SRC elisp :colnames yes
'((one two) (1 3) (1 6))
#+END_SRC
I'm expecting an hline in the output but do not find one.
I know ":colnames '(one two)" works, but I don't know the header value
until I've generated the table.
-Ian
[-- Attachment #2: Type: text/html, Size: 1006 bytes --]
next reply other threads:[~2020-05-28 11:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 11:48 ian martins [this message]
2020-05-28 13:29 ` org-babel :colnames yes Nick Dokos
2020-05-28 13:44 ` ian martins
2020-05-29 2:08 ` ian martins
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='CAC=rjb56PC+dazpDtV=Je-+POWaZ7z_O3Bbt-yCQpgHsmqCZJg@mail.gmail.com' \
--to=ianxm@jhu.edu \
--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).