From ba532e45ba7fe373effbeef3781e744b33f532a4 Mon Sep 17 00:00:00 2001 From: "Rainer M. Krug" Date: Mon, 31 Mar 2014 16:57:14 +0200 Subject: [PATCH 5/8] Adds visual separators * ob-R.el (org-babel-expand-body:R): Add visual separators in R code to separate the automatically added code from the code from the code blocks. --- lisp/ob-R.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 214c14d..3534580 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -103,12 +103,16 @@ this variable.") (append (when (cdr (assoc :prologue params)) (list (cdr (assoc :prologue params)))) + '("######################################################################") + '("## Beginning org variable transfer") '("try(detach(.org_variables_), silent=TRUE)") '(".org_variables_ <- new.env()") (org-babel-variable-assignments:R params) '("lockEnvironment(.org_variables_)") '("attach(.org_variables_)") '("save(.org_variables_, file='org_variables.RData')") + '("## end org variable transfer") + '("######################################################################") (list body) (when (cdr (assoc :epilogue params)) (list (cdr (assoc :epilogue params))))))) -- 1.8.5.2 (Apple Git-48)