[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [Babel] [Ann] varied updates and improvements
From: |
Thomas S. Dye |
Subject: |
Re: [Orgmode] [Babel] [Ann] varied updates and improvements |
Date: |
Sat, 1 Jan 2011 11:01:04 -1000 |
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