From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: sbe with :file header arg? Date: Mon, 10 Oct 2011 13:15:36 +0100 Message-ID: <87list59g7.fsf@bill.i-did-not-set--mail-host-address--so-tickle-me> References: <87r52oy9n5.fsf@bill.home> <87sjn4r7ai.fsf@gmail.com> Reply-To: emacs-orgmode@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDEkC-0001rp-HY for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 08:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDEkA-0005Tw-4I for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 08:14:08 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:41340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDEk9-0005Tk-Nr for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 08:14:06 -0400 Received: by wwp14 with SMTP id 14so7494308wwp.30 for ; Mon, 10 Oct 2011 05:14:04 -0700 (PDT) In-Reply-To: <87sjn4r7ai.fsf@gmail.com> (Eric Schulte's message of "Fri, 07 Oct 2011 12:22:13 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Eric, >> On Fri, 07 Oct 2011 12:22:13 -0600, Eric Schulte said: > Myles English 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