emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [babel] Problem using noweb


From: andy
Subject: [Orgmode] Re: [babel] Problem using noweb
Date: Wed, 09 Feb 2011 15:57:23 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7


On 02/09/2011 03:27 PM, Dan Davison wrote:
> Eric S Fraga <address@hidden> writes:
>
>> andy <address@hidden> writes:
>>
>>> I want to take advantage of babel's noweb capabilities, but I can't seem
>>> to get it to work.
> [...]
>>> * Foo
>>> ** Bar
>>> #+src_name: bar
>>> #+begin_src R :noweb yes :session *R*
>>>   <<test-block>>
>>>   print("I am here")
>>>   a
>>> #+end_src
>>>
>>> * test-block
>>> #+src_name: test-block
>>> #+begin_src R :session *R*
>>>   a <- c(1,2,3,4,5)
>>> #+end_src
>>>
> Hey Andy,
>
> I hope this didn't detain you too long, because you were basically doing
> nothing wrong. Except... #+srcname has no underscore in it!
>

That got it. Thanks. I am feeling a little silly right now.

>> I believe that you need to specify noweb on every source block,
>> including the one you wish to include.
> Nope. :) Only bar needs :noweb above.
>
> Dan
>
>>  That's what I had to do, in any
>> case, if I remember correctly...  haven't tried it on your code as my
>> train is pulling into the station and I have to run! ;)

-- 
I climb things up so I can ski them DOWN!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]