From: andy <andy.choens@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel] Problem using noweb
Date: Wed, 09 Feb 2011 10:33:32 -0500 [thread overview]
Message-ID: <4D52B3CC.5060701@gmail.com> (raw)
I want to take advantage of babel's noweb capabilities, but I can't seem
to get it to work. I'm sure there is something trivial wrong with my
source block, but after looking at the documentation and looking at the
examples I can find on the web, I think this should work.
I define a variable in test-block, but it's not there, even though
test-block should be getting pulled in when I run the source block, bar.
What am I doing wrong? My .emacs has R defined and indeed, the session
*R* starts up without any problems and the print statement works, but
test-block just isn't there.
* 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
thanks
--andy
next reply other threads:[~2011-02-09 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 15:33 andy [this message]
2011-02-09 19:04 ` [babel] Problem using noweb Eric S Fraga
2011-02-09 20:27 ` Dan Davison
2011-02-09 20:57 ` andy
2011-02-09 23:11 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D52B3CC.5060701@gmail.com \
--to=andy.choens@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.