Aloha all,
I'm seeing some unexpected behavior with source blocks as I'm
adding :cache yes as a multi-line header argument. The top #+results:
is with the addition of the #+header: :cache yes line. Note the lack
of a :results name and also the lack of the SHA1 hash. The bottom #
+results: line is the result before addition of the #+header: line.
#+srcname: r-edge-angle-histogram
#+header: :cache yes
#+begin_src R :results output :var x=whole-adzes :file r/
adze_edge_angle.png :width 400 :height 300
library(ggplot2)
adze.edge.angle <- ggplot(x, aes(edge_angle))
adze.edge.angle + geom_histogram(aes(y=..density..)) +
geom_density(weight=2) + xlab("Measured cutting edge angle
(degrees)")
#+end_src
#+results:
[[file:r/adze_edge_angle.png]]
#+results: r-edge-angle-histogram
[[file:r/adze_edge_angle.png]]
All the best,
Tom
On Oct 21, 2010, at 4:18 AM, Eric Schulte wrote:
Multi-line header arguments to code blocks
-------------------------------------------
Code block header arguments can now span multiple lines using the
new =#+header:= or =#+headers:= lines preceding a code block or
nested in between the name and body of a named code block.
Examples are given below.
- multi-line header arguments on an un-named code block
#+headers: :var data1=1
#+begin_src emacs-lisp :var data2=2
(message "data1:%S, data2:%S" data1 data2)
#+end_src
#+results:
: data1:1, data2:2
- multi-line header arguments on a named code block
#+source: named-block
#+header: :var data=2
#+begin_src emacs-lisp
(message "data:%S" data)
#+end_src
#+results: named-block
: data:2
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode