[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] sbe with :file header arg?
From: |
Myles English |
Subject: |
Re: [O] sbe with :file header arg? |
Date: |
Mon, 10 Oct 2011 13:15:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hi Eric,
>> On Fri, 07 Oct 2011 12:22:13 -0600, Eric Schulte said:
> Myles English <address@hidden> writes:
>> I would like to make one plot per row of a table. This is useful
>> because the contents of the row may be parameters in an R session,
>> and a link to the resulting plot can be put in the last cell of
>> each row.
>>
> I've just updated the sbe macro so that it is now possible to pass
> header arguments through to the called code block. Specifically, if
> the value immediately following the code block name in an sbe call
> is a string rather than a variable specification list it will be
> added to the code blocks header arguments. See the example below.
> #+source: test-sbe #+begin_src emacs-lisp :var x=0 :var y=0 (+ x
> y) #+end_src
> | 1 | 2 | :file eric.png | eric.png | #+TBLFM: @1$4='(sbe test-sbe
> $3 (x $1) (y $2))
> | 1 | 2 | :file eric.png | 3 | #+TBLFM: @1$4='(sbe test-sbe (x $1)
> (y $2))
Thank you very much, it works well and replaces several manual steps.
Myles