From 322fe431c52c36e297b93c924db20b32fa20f785 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 25 Feb 2010 11:03:57 -0500 Subject: [PATCH] babel: Write R input data remotely when necessary. --- contrib/babel/lisp/langs/org-babel-R.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/babel/lisp/langs/org-babel-R.el b/contrib/babel/lisp/langs/org-babel-R.el index 1b4f70c07..f1980897b 100644 --- a/contrib/babel/lisp/langs/org-babel-R.el +++ b/contrib/babel/lisp/langs/org-babel-R.el @@ -87,7 +87,7 @@ called by `org-babel-execute-src-block'." (let ((transition-file (make-temp-file "org-babel-R-import"))) ;; ensure VALUE has an orgtbl structure (depth of at least 2) (unless (listp (car value)) (setq value (list value))) - (with-temp-file transition-file + (with-temp-file (org-babel-maybe-remote-file transition-file) (insert (orgtbl-to-tsv value '(:fmt org-babel-R-quote-tsv-field))) (insert "\n")) (format "%s <- read.table(\"%s\", header=%s, sep=\"\\t\", as.is=TRUE)"