From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How do I chain babel blocks with arguments? Date: Sun, 20 Apr 2014 19:22:50 -0600 Message-ID: <878uqzcw6f.fsf@gmail.com> References: <87d2gg0xjc.fsf@gmail.com> <87oazwdb0y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wc2xe-00039k-Eb for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 21:24:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wc2xY-0007qw-PP for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 21:23:54 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:34644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wc2xY-0007qk-ID for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 21:23:48 -0400 Received: by mail-pa0-f54.google.com with SMTP id lf10so3181690pab.41 for ; Sun, 20 Apr 2014 18:23:47 -0700 (PDT) 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: Xebar Saram Cc: emacs-orgmode , Alan Schmitt , tjolitz@gmail.com Xebar Saram writes: > 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? > Yes. See `org-babel-execute-buffer' and `org-babel-execute-subtree'. Best, > > 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 >> >> -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D