From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: How do I chain babel blocks with arguments? Date: Sun, 20 Apr 2014 06:33:01 +0300 Message-ID: References: <87d2gg0xjc.fsf@gmail.com> <87oazwdb0y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122991c3a424104f7710ab2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbiV5-0008Uu-Vz for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 23:33:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbiV4-0001Wm-Sz for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 23:33:03 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:39214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbiV4-0001Wf-MW for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 23:33:02 -0400 Received: by mail-oa0-f41.google.com with SMTP id j17so3160182oag.28 for ; Sat, 19 Apr 2014 20:33:01 -0700 (PDT) In-Reply-To: <87oazwdb0y.fsf@gmail.com> 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: Eric Schulte , tjolitz@gmail.com Cc: Alan Schmitt , emacs-orgmode --089e0122991c3a424104f7710ab2 Content-Type: text/plain; charset=UTF-8 Hi guys a related newbie question that occurred to me from reading this thread (sorry for "crashing" the thread :)). if i understand correctly from the above posts, is there a way to batch evaluate multiple org mode code blocks at once? My use case is using babel with R statistics where i have multiple code blocks and would like to run 10-12 blocks together in a consecutive order, is that possible? if so how is this done? best Z On Sun, Apr 20, 2014 at 4:41 AM, Eric Schulte wrote: > > --8<---------------cut here---------------start------------->8--- > > #+name: z > > : "bar" > > #+name: test3 > > #+begin_src emacs-lisp :var x="foo" > > x > > #+end_src > > > > #+name:test4 > > #+begin_src emacs-lisp :var y=test1(x=z) > > y > > #+end_src > > > > #+results: test4 > > : "bar" > > > > #+call: test4(z="BAZ") > ^ > The above line has an error, your "z" should be an "x". > > Best, > > -- > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D > > --089e0122991c3a424104f7710ab2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi guys

a related newbie question that = occurred to me from reading this thread (sorry for "crashing" the= thread :)). if i understand correctly from the above posts, is there a way= to batch evaluate multiple org mode code blocks at once?=C2=A0
My use case is using babel with R statistics where i have multiple cod= e blocks and would like to run 10-12 blocks together in a consecutive order= , is that possible? if so how is this done?

best

Z


On Sun, Apr 20, 2014 at 4:41 AM, Eric Schulte <sc= hulte.eric@gmail.com> wrote:
> --8<---------------c= ut here---------------start------------->8---
> #+name: z
> : "bar"
> #+name: test3
> #+begin_src emacs-lisp :var x=3D"foo"
> x
> #+end_src
>
> #+name:test4
> #+begin_src emacs-lisp :var y=3Dtest1(x=3Dz)
> y
> #+end_src
>
> #+results: test4
> : "bar"
>
> #+call: test4(z=3D"BAZ")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
The above line has an error, your "z" should be an "x".=

Best,

--
Eric Schulte
https://cs.unm.e= du/~eschulte
PGP: 0x614CA05D


--089e0122991c3a424104f7710ab2--