From 9b1aed4c855fd54caa7b91e316b26ef7a813b7b0 Mon Sep 17 00:00:00 2001 From: "Rainer M. Krug" Date: Wed, 26 Mar 2014 16:53:29 +0100 Subject: [PATCH 2/8] Add saving of org variable document * lisp/ob-R.el (org-babel-expand-body:R): add R command to save `org' environment after variables are stored and locked. --- lisp/ob-R.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 82971de..af90e68 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -108,6 +108,7 @@ this variable.") (org-babel-variable-assignments:R params) '("lockEnvironment(org)") '("attach(org)") + '("save(org, file='orgVARIABLES.RData')") (list body) (when (cdr (assoc :epilogue params)) (list (cdr (assoc :epilogue params))))))) -- 1.8.5.2 (Apple Git-48)