diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-07-25 16:24:14 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-07-25 16:24:14 +0200 |
commit | 31b30e5aee04653255bdc42124260e57c2500f3d (patch) | |
tree | 7daf9b0e700a2163d5e2fcab0b102661fe8b07b7 | |
parent | 676a588b5510fef2629090e58532f66f8bcce28a (diff) | |
download | org-mode-31b30e5aee04653255bdc42124260e57c2500f3d.tar.gz |
ob-R: Silence byte-compiler
* lisp/ob-R.el (org-babel-R-evaluate-external-process):
(org-babel-R-evaluate-session): Silence byte-compiler.
-rw-r--r-- | lisp/ob-R.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 1e71c8a..123aaaf 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -27,8 +27,9 @@ ;; Org-Babel support for evaluating R code ;;; Code: -(require 'ob) + (require 'cl-lib) +(require 'ob) (declare-function orgtbl-to-tsv "org-table" (table params)) (declare-function R "ext:essd-r" (&optional start-args)) @@ -376,12 +377,12 @@ Has four %s escapes to be filled in: body result-type result-params column-names-p row-names-p))) (defun org-babel-R-evaluate-external-process - (body result-type result-params column-names-p row-names-p) + (body result-type result-params column-names-p row-names-p) "Evaluate BODY in external R process. If RESULT-TYPE equals `output' then return standard output as a string. If RESULT-TYPE equals `value' then return the value of the last statement in BODY, as elisp." - (case result-type + (cl-case result-type (value (let ((tmp-file (org-babel-temp-file "R-"))) (org-babel-eval org-babel-R-command @@ -404,12 +405,12 @@ last statement in BODY, as elisp." (defvar ess-eval-visibly-p) (defun org-babel-R-evaluate-session - (session body result-type result-params column-names-p row-names-p) + (session body result-type result-params column-names-p row-names-p) "Evaluate BODY in SESSION. If RESULT-TYPE equals `output' then return standard output as a string. If RESULT-TYPE equals `value' then return the value of the last statement in BODY, as elisp." - (case result-type + (cl-case result-type (value (with-temp-buffer (insert (org-babel-chomp body)) |