|
|
@@ -199,7 +199,6 @@ would then be [[#sandbox][the sandbox]].
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
-
|
|
|
* Tasks [29/47]
|
|
|
** TODO make tangle files read-only?
|
|
|
With a file-local variable setting?
|
|
|
@@ -848,6 +847,11 @@ $0
|
|
|
|
|
|
waiting for guidance from those more familiar with yasnippets
|
|
|
** DONE LoB: allow output in buffer
|
|
|
+** DONE allow default header arguments by language
|
|
|
+org-babel-default-header-args:lang-name
|
|
|
+
|
|
|
+An example of when this is useful is for languages which always return
|
|
|
+files as their results (e.g. [[*** ditaa][ditaa]], and [[*** gnuplot][gnuplot]]).
|
|
|
** DONE singe-function tangling and loading elisp from literate org-mode file [3/3]
|
|
|
|
|
|
This function should tangle the org-mode file for elisp, and then call
|
|
|
@@ -1948,7 +1952,7 @@ This is currently working only with emacs lisp as in the following
|
|
|
example in the [[* emacs lisp source reference][emacs lisp source reference]].
|
|
|
|
|
|
|
|
|
-** TODO Add languages [0/5]
|
|
|
+** TODO Add languages [1/6]
|
|
|
I'm sure there are many more that aren't listed here. Please add
|
|
|
them, and bubble any that you particularly care about up to the top.
|
|
|
|
|
|
@@ -1961,9 +1965,33 @@ This could probably be added to [[file:lisp/org-babel-script.el][org-babel-scrip
|
|
|
|
|
|
*** TODO java
|
|
|
|
|
|
-*** TODO ditaa
|
|
|
+*** DONE ditaa
|
|
|
(see [[* file result types][file result types]])
|
|
|
|
|
|
+#+srcname: implementing-ditaa
|
|
|
+#+begin_src ditaa :results replace :file blue.png :cmdline -r
|
|
|
++---------+
|
|
|
+| cBLU |
|
|
|
+| |
|
|
|
+| +----+
|
|
|
+| |cPNK|
|
|
|
+| | |
|
|
|
++----+----+
|
|
|
+#+end_src
|
|
|
+
|
|
|
+#+resname: implementing-ditaa
|
|
|
+[[file:blue.png][blue.png]]
|
|
|
+
|
|
|
+*** STARTED gnuplot
|
|
|
+(see [[* file result types][file result types]])
|
|
|
+
|
|
|
+- a required =file= header argument
|
|
|
+- a =cmdline= header argument
|
|
|
+- to add variables
|
|
|
+ - scalar variables should be replaced in the body of the gnuplot code
|
|
|
+ - vector variables should be exported to tab-separated files, and
|
|
|
+ the variable names should be replaced with the path to the files
|
|
|
+
|
|
|
*** TODO dot
|
|
|
(see [[* file result types][file result types]])
|
|
|
|
|
|
@@ -2466,47 +2494,47 @@ of these tests may fail.
|
|
|
| basic evaluation | | | | | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
| emacs lisp | basic-elisp | | 5 | 5 | pass |
|
|
|
-| shell | basic-shell | | 6 | 6 | pass |
|
|
|
-| ruby | basic-ruby | | org-babel | org-babel | pass |
|
|
|
+| shell | basic-shell | | 6 | 6 | pass |
|
|
|
+| ruby | basic-ruby | | org-babel | org-babel | pass |
|
|
|
| python | basic-python | | hello world | hello world | pass |
|
|
|
-| R | basic-R | | 13 | 13 | pass |
|
|
|
+| R | basic-R | | 13 | 13 | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
| tables | | | | | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
-| emacs lisp | table-elisp | | 3 | 3 | pass |
|
|
|
-| ruby | table-ruby | | 1-2-3 | 1-2-3 | pass |
|
|
|
-| python | table-python | | 5 | 5 | pass |
|
|
|
-| R | table-R | | 3.5 | 3.5 | pass |
|
|
|
+| emacs lisp | table-elisp | | 3 | 3 | pass |
|
|
|
+| ruby | table-ruby | | 1-2-3 | 1-2-3 | pass |
|
|
|
+| python | table-python | | 5 | 5 | pass |
|
|
|
+| R | table-R | | 3.5 | 3.5 | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
| source block references | | | | | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
-| all languages | chained-ref-last | | Array | Array | pass |
|
|
|
+| all languages | chained-ref-last | | Array | Array | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
| source block functions | | | | | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
-| emacs lisp | defun-fibb | | fibbd | fibbd | pass |
|
|
|
-| run over | Fibonacci | 0 | 1 | 1 | pass |
|
|
|
-| a | Fibonacci | 1 | 1 | 1 | pass |
|
|
|
-| variety | Fibonacci | 2 | 2 | 2 | pass |
|
|
|
-| of | Fibonacci | 3 | 3 | 3 | pass |
|
|
|
-| different | Fibonacci | 4 | 5 | 5 | pass |
|
|
|
-| arguments | Fibonacci | 5 | 8 | 8 | pass |
|
|
|
+| emacs lisp | defun-fibb | | fibbd | fibbd | pass |
|
|
|
+| run over | Fibonacci | 0 | 1 | 1 | pass |
|
|
|
+| a | Fibonacci | 1 | 1 | 1 | pass |
|
|
|
+| variety | Fibonacci | 2 | 2 | 2 | pass |
|
|
|
+| of | Fibonacci | 3 | 3 | 3 | pass |
|
|
|
+| different | Fibonacci | 4 | 5 | 5 | pass |
|
|
|
+| arguments | Fibonacci | 5 | 8 | 8 | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
| bugs and tasks | | | | | pass |
|
|
|
-|-------------------------+----------------------------+-----+-------------+-------------+------| | |
|
|
|
-| simple ruby arrays | ruby-array-test | | 3 | 3 | |
|
|
|
-| R number evaluation | bug-R-number-evaluation | | 2 | | |
|
|
|
-| multi-line ruby blocks | multi-line-ruby-test | | 2 | | |
|
|
|
-| forcing vector results | test-forced-vector-results | | Array | | |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
-| sessions | | | | | |
|
|
|
+| simple ruby arrays | ruby-array-test | | 3 | 3 | pass |
|
|
|
+| R number evaluation | bug-R-number-evaluation | | 2 | 2 | pass |
|
|
|
+| multi-line ruby blocks | multi-line-ruby-test | | 2 | 2 | pass |
|
|
|
+| forcing vector results | test-forced-vector-results | | Array | Array | pass |
|
|
|
+|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
+| sessions | | | | | pass |
|
|
|
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|
|
-| set ruby session | set-ruby-session-var | | :set | | |
|
|
|
-| get from ruby session | get-ruby-session-var | | 3 | | |
|
|
|
-| set python session | set-python-session-var | | set | | |
|
|
|
-| get from python session | get-python-session-var | | 4 | | |
|
|
|
-| set R session | set-R-session-var | | set | | |
|
|
|
-| get from R session | get-R-session-var | | 5 | | |
|
|
|
+| set ruby session | set-ruby-session-var | | :set | :set | pass |
|
|
|
+| get from ruby session | get-ruby-session-var | | 3 | 3 | pass |
|
|
|
+| set python session | set-python-session-var | | set | set | pass |
|
|
|
+| get from python session | get-python-session-var | | 4 | 4 | pass |
|
|
|
+| set R session | set-R-session-var | | set | set | pass |
|
|
|
+| get from R session | get-R-session-var | | 5 | 5 | pass |
|
|
|
#+TBLFM: $5='(if (= (length $3) 1) (progn (message (format "running %S" '(sbe $2 (n $3)))) (sbe $2 (n $3))) (sbe $2))::$6='(if (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5))
|
|
|
|
|
|
** basic tests
|