From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: simple variables as arguments to source block Date: Tue, 07 May 2013 12:33:53 +0200 Message-ID: <87mws79izy.fsf@pank.eu> References: <87k3nb883v.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZfDl-0007qp-Du for emacs-orgmode@gnu.org; Tue, 07 May 2013 06:34:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZfDk-0002ZQ-8N for emacs-orgmode@gnu.org; Tue, 07 May 2013 06:34:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:47342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZfDk-0002ZL-2Z for emacs-orgmode@gnu.org; Tue, 07 May 2013 06:34:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UZfDi-0008NT-9a for emacs-orgmode@gnu.org; Tue, 07 May 2013 12:34:06 +0200 Received: from business-213-023-238-209.static.arcor-ip.net ([213.23.238.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 May 2013 12:34:06 +0200 Received: from rasmus by business-213-023-238-209.static.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 May 2013 12:34:06 +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 Andreas Leha writes: > Hi all, > > I'd like to pass a string to a source block -- not directly, though, but > through a reference. What is the recommended way to do this? > > This is what I gather from the manual: > > --8<---------------cut here---------------start------------->8--- > #+name: myvar > | aaa | > > #+begin_src R test :var myvar=myvar[0,0] > print(myvar) > #+end_src > --8<---------------cut here---------------end--------------->8--- > My question is: How can I get rid of the [0,0]? How about: #+BEGIN_SRC Org #+NAME: myvar : 4 #+BEGIN_SRC R :var x=myvar x #+END_SRC #+RESULTS: : 4 #+END_SRC -- This is the kind of tedious nonsense up with which I will not put