[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How do I chain babel blocks with arguments?
From: |
Eric Schulte |
Subject: |
Re: [O] How do I chain babel blocks with arguments? |
Date: |
Sun, 20 Apr 2014 19:22:50 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Xebar Saram <address@hidden> 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 <address@hidden>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
- [O] How do I chain babel blocks with arguments?, Alan Schmitt, 2014/04/16
- Re: [O] How do I chain babel blocks with arguments?, Eric Schulte, 2014/04/17
- Re: [O] How do I chain babel blocks with arguments?, Alan Schmitt, 2014/04/18
- Re: [O] How do I chain babel blocks with arguments?, Alan Schmitt, 2014/04/22
- Re: [O] How do I chain babel blocks with arguments?, Eric Schulte, 2014/04/22
- Re: [O] How do I chain babel blocks with arguments?, Alan Schmitt, 2014/04/22
- Re: [O] How do I chain babel blocks with arguments?, Eric Schulte, 2014/04/23