From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: input data for babel blocks Date: Mon, 30 Sep 2013 16:26:00 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQgIr-0000XB-1g for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 12:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQgIk-0000sm-T1 for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 12:26:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:39968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQgIk-0000qA-Le for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 12:26:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VQgIg-0004em-0w for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 18:26:22 +0200 Received: from 137.110.34.64 ([137.110.34.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Sep 2013 18:26:22 +0200 Received: from ccberry by 137.110.34.64 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Sep 2013 18:26:22 +0200 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 Alan Schmitt polytechnique.org> writes: > > Hello, > > In my quest for analyzing my data in org mode tables, I'm trying to see > if I can use my favorite language (i.e., ocaml). I'm thus looking at how [discussion of revising org-babel-variable-assignments: deleted] > > I have the following questions for the list: > - can I always assume that tables are passed as lists of lists? > - would the patch above be a useful way to deal with this? > - is there a way to specify the :var parsing in a code block or in the table? Alan, Nice description of a problem that has vexed me, too. It would be nice to have more flexibility in passing objects to src blocks in ones favored language via the :var header arg. Lacking that, another alternative to the approach you have crafted is to use elisp src blocks to set up the commands needed to create the objects, and then place the results of executing the elisp src block in the src block of your favored language using noweb, for example #+BEGIN_SRC mylang :noweb yes <> #+END_SRC might convert 'arg2' to an object of the desired type named 'arg1' in a 'mylang' src block. FWIW, my own usage of this approach is to write LaTeX code including backslashes and unmatched quotes, then convert the code to a valid R character string for labelling figures (which undoubled backslashes and unmatched quotes would invalidate). HTH, Chuck