babel: Write R input data remotely when necessary.
This commit is contained in:
parent
a705bf5925
commit
322fe431c5
|
@ -87,7 +87,7 @@ called by `org-babel-execute-src-block'."
|
||||||
(let ((transition-file (make-temp-file "org-babel-R-import")))
|
(let ((transition-file (make-temp-file "org-babel-R-import")))
|
||||||
;; ensure VALUE has an orgtbl structure (depth of at least 2)
|
;; ensure VALUE has an orgtbl structure (depth of at least 2)
|
||||||
(unless (listp (car value)) (setq value (list value)))
|
(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 (orgtbl-to-tsv value '(:fmt org-babel-R-quote-tsv-field)))
|
||||||
(insert "\n"))
|
(insert "\n"))
|
||||||
(format "%s <- read.table(\"%s\", header=%s, sep=\"\\t\", as.is=TRUE)"
|
(format "%s <- read.table(\"%s\", header=%s, sep=\"\\t\", as.is=TRUE)"
|
||||||
|
|
Loading…
Reference in New Issue