From 28c32628480b89ec8c1fb8e5cf774700b78d9c6a Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 19 Jul 2009 11:06:44 -0600 Subject: [PATCH 1/3] fixed variable name in org-babel-R-evaluate --- lisp/langs/org-babel-R.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/langs/org-babel-R.el b/lisp/langs/org-babel-R.el index b401a4073..c2ca67936 100644 --- a/lisp/langs/org-babel-R.el +++ b/lisp/langs/org-babel-R.el @@ -92,7 +92,7 @@ called by `org-babel-execute-src-block' via multiple-value-bind." (defvar org-babel-R-wrapper-method "main <- function ()\n{\n%s\n} write.table(main(), file=\"%s\", sep=\"\\t\", na=\"nil\",row.names=FALSE, col.names=%s, quote=FALSE)") -(defun org-babel-R-evaluate (buffer body result-type colnames) +(defun org-babel-R-evaluate (buffer body result-type column-names-p) "Pass BODY to the R process in BUFFER. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the From c9752352ea1ef12cb5f72b7920eee37ba8c3ffe4 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 19 Jul 2009 11:11:55 -0600 Subject: [PATCH 2/3] added task: "TODO gnuplot support for column/row names" Adding support for column/row names (as currently being implemented for R) on a language by language basis is definitely the right way to handle this hline/header issue. I am going to try to do the same for gnuplot. --- org-babel.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org-babel.org b/org-babel.org index 7af3f8c00..02e224a82 100644 --- a/org-babel.org +++ b/org-babel.org @@ -2092,7 +2092,7 @@ This could probably be added to [[file:lisp/org-babel-script.el][org-babel-scrip #+resname: implementing-ditaa [[file:blue.png][blue.png]] -*** STARTED gnuplot [2/6] +*** STARTED gnuplot [2/7] (see [[* file result types][file result types]]) #+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]" @@ -2125,6 +2125,9 @@ plot "data" using 1:2 with lines the variable names should be replaced with the path to the files **** DONE direct plotting w/o session +**** TODO gnuplot support for column/row names +This should be implemented along the lines of the [[* STARTED Column (and row) names of tables in R input/output][R-colname-support]]. + **** TODO a =file= header argument to specify a file holding the results From 1df8d69c7cf08514e3261abf864aed4c91d977cf Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 19 Jul 2009 11:17:24 -0600 Subject: [PATCH 3/3] some minor additional discussion in o-b.org --- org-babel.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/org-babel.org b/org-babel.org index 02e224a82..0c8a5a2bb 100644 --- a/org-babel.org +++ b/org-babel.org @@ -366,10 +366,13 @@ This is listed under [[* graphical output][graphical output]] in out objectives. This should take advantage of the =:results file= option, and languages which almost always produce graphical output should set -=:results file= to true by default. That would handle placing these -results in the buffer. Then if there is a combination of =silent= and -=file= =:results= headers we could drop the results to a temp buffer -and pop open that buffer... +=:results file= to true by default (this is currently done for the +gnuplot and ditaa languages). That would handle placing these results +in the buffer. Then if there is a combination of =silent= and =file= +=:results= headers we could drop the results to a temp buffer and pop +open that buffer... + +Display of file results is addressed in the [[* =\C-c \C-o= to open results of source block][open-results-task]]. *** TODO R graphics to screen means session evaluation If R graphical output is going to screen then evaluation must be