From: "Eric Schulte" <schulte.eric@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode@gnu.org,
Inquisitive Scientist <inquisitive.scientist@gmail.com>
Subject: Re: Re: question about chaining function calls in org-babel
Date: Thu, 05 Aug 2010 20:41:01 -0400 [thread overview]
Message-ID: <87mxt0374y.fsf@gmail.com> (raw)
In-Reply-To: <87tyn9erq3.fsf@stats.ox.ac.uk> (Dan Davison's message of "Wed, 04 Aug 2010 22:08:36 -0400")
Dan Davison <davison@stats.ox.ac.uk> writes:
[...]
>
> | mean |
> |--------|
> | #ERROR |
> #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size 16))))
>
> I *believe* that there is no expectation for this to work, because sbe
> is an elisp function (well, a macro), and not a source block. In other
> words, the first sbe is expecting a source block reference, whereas what
> it gets is this lisp form:
>
> (sbe "tbl-example-data" (seed 4) (size 16))
>
> My guess is that sbe does not undertake to evaluate a lisp form
> occurring in that context. But I admit that I still find these
> complicated macros more or less incomprehensible, so we could do with
> Eric's input here.
>
Dan is correct, the example above with nested calls to sbe will not
work, something like the following at least has the possibility of
working.
| mean |
|--------|
| #ERROR |
#+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=6)"))
Unfortunately I don't have the time to test this right now.
Best -- Eric
prev parent reply other threads:[~2010-08-06 0:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 0:19 question about chaining function calls in org-babel Inquisitive Scientist
2010-08-05 2:08 ` Dan Davison
2010-08-06 0:41 ` Eric Schulte [this message]
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=87mxt0374y.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=inquisitive.scientist@gmail.com \
/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).