emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Tangle only code block body


From: Ista Zahn
Subject: [O] Tangle only code block body
Date: Sat, 18 Feb 2012 12:11:30 -0500
User-agent: KMail/4.8.0 (Linux/3.2.5-1-ARCH; KDE/4.8.0; x86_64; ; )

Hi all,

Is there a way to tangle just the body of code blocks, without any header 
argurments? For example when I tangle this file

##### begin example #####

* test
#+name: testplot
#+begin_src R :results output graphics :file tmp.png :tangle tmp.R
  plot(1:10)
#+end_src

##### end example #####

I get

png(filename="tmp.png")
plot(1:10)
dev.off()

but I want just

plot(1:10)


I've tried removing the %flag setting in org-babel-exp-code-template but it 
didn't seem to have any effect. 

Thanks for any pointers,

Ista





reply via email to

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