From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Babel - simple getting started problem Date: Fri, 18 Dec 2009 11:52:45 -0700 Message-ID: <87r5qsqflu.fsf@gmail.com> References: <2c75873c0912062320m20284efawb5b4414fa5593691@mail.gmail.com> <87fx7m674g.fsf@stats.ox.ac.uk> <87ocm9amhl.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLhwd-0007e7-0J for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 13:52:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLhwY-0007TW-6x for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 13:52:54 -0500 Received: from [199.232.76.173] (port=57628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLhwY-0007TE-1z for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 13:52:50 -0500 Received: from mail-yw0-f202.google.com ([209.85.211.202]:42053) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLhwX-00020R-Mt for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 13:52:49 -0500 Received: by ywh40 with SMTP id 40so3566195ywh.26 for ; Fri, 18 Dec 2009 10:52:49 -0800 (PST) In-Reply-To: <87ocm9amhl.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Tue, 08 Dec 2009 09:39:02 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Dan, > > Dan Davison wrote: >> >> * meantest >> #+srcname: calcmean(data=3Dtrial) >> #+begin_src R >> mean(data) >> #+end_src >> >> #+results: calcmean >> : 6.5 >> >> or alternative syntax >> >> #+begin_src R :var data=3Dtrial >> mean(data) >> #+end_src >> >> #+results: >> : 6.5 > > As I am as well *learning* Org-babel and its satellites (R, GNU screen, e= tc.), > I'm wondering if there is one of the two above syntaxes that gets more ch= ance > to be the survivor -- would there be a war between both=C2=A0;-) > > I mean: I'm not yet attached to any of the two. Which one should I use be= tter, > ensuring more portability over time? Or are these both totally equivalen= t, > and will it stay so for the coming years? > Both of these syntaxes are totally equivalent, and both should be fully supported into the foreseeable future. As for the winner in a war between the two it would be the :var syntax. The :var syntax is more fundamental as it's part of the header-argument syntax which is core to org-babel so there is no conceivable way that it would not be supported, while the srcname(args) syntax is more syntactic-sugar on top of the existing header argument syntax. That said you should be safe using either. -- Eric > > Best regards, > Seb