aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org/ob-R.el
diff options
context:
space:
mode:
authorYuuki Harano2020-12-21 01:53:07 +0900
committerYuuki Harano2020-12-21 01:53:07 +0900
commit565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42 (patch)
tree5a25406b9f4ff091cb6856e857d2857bb3e631e4 /lisp/org/ob-R.el
parenta44cd7c88121bb0e04bdf13d73e15f085cf3b085 (diff)
parent87b82a1969edf80d3bd4781454ec9fc968773a6d (diff)
downloademacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.tar.gz
emacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'lisp/org/ob-R.el')
-rw-r--r--lisp/org/ob-R.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/org/ob-R.el b/lisp/org/ob-R.el
index b52c7591ad2..b4cf360730d 100644
--- a/lisp/org/ob-R.el
+++ b/lisp/org/ob-R.el
@@ -193,7 +193,8 @@ This function is called by `org-babel-execute-src-block'."
193 (org-babel-comint-in-buffer session 193 (org-babel-comint-in-buffer session
194 (mapc (lambda (var) 194 (mapc (lambda (var)
195 (end-of-line 1) (insert var) (comint-send-input nil t) 195 (end-of-line 1) (insert var) (comint-send-input nil t)
196 (org-babel-comint-wait-for-output session)) var-lines)) 196 (org-babel-comint-wait-for-output session))
197 var-lines))
197 session)) 198 session))
198 199
199(defun org-babel-load-session:R (session body params) 200(defun org-babel-load-session:R (session body params)
@@ -360,7 +361,7 @@ Each member of this list is a list with three members:
360 ) 361 )
361 } 362 }
362}(object=%s,transfer.file=\"%s\")" 363}(object=%s,transfer.file=\"%s\")"
363 "A template for an R command to evaluate a block of code and write the result to a file. 364 "Template for an R command to evaluate a block of code and write result to file.
364 365
365Has four %s escapes to be filled in: 366Has four %s escapes to be filled in:
3661. Row names, \"TRUE\" or \"FALSE\" 3671. Row names, \"TRUE\" or \"FALSE\"
@@ -459,11 +460,11 @@ last statement in BODY, as elisp."
459 "R-specific processing of return value. 460 "R-specific processing of return value.
460Insert hline if column names in output have been requested." 461Insert hline if column names in output have been requested."
461 (if column-names-p 462 (if column-names-p
462 (cons (car result) (cons 'hline (cdr result))) 463 (condition-case nil
464 (cons (car result) (cons 'hline (cdr result)))
465 (error "Could not parse R result"))
463 result)) 466 result))
464 467
465(provide 'ob-R) 468(provide 'ob-R)
466 469
467
468
469;;; ob-R.el ends here 470;;; ob-R.el ends here