diff options
author | Bastien <bzg@gnu.org> | 2020-05-24 16:08:52 +0200 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-05-24 16:08:52 +0200 |
commit | d9fe6aeafe645664a19b32df670c573e7494c77c (patch) | |
tree | 825eac9c3d053a8e0f33b3442c71875b69612aa5 | |
parent | 010d1e3b6e0da252fa08162110d2d5c7d6fda861 (diff) | |
download | org-mode-d9fe6aeafe645664a19b32df670c573e7494c77c.tar.gz |
lisp/ob-R.el: Don't throw an error when result cannot be parsed
* lisp/ob-R.el (org-babel-R-process-value-result): When the result
cannot be parsed, return an error as the output.
Thanks to Greg Minshall for reporting this.
-rw-r--r-- | lisp/ob-R.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ob-R.el b/lisp/ob-R.el index b33de4a..5e9d35f 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -460,7 +460,9 @@ last statement in BODY, as elisp." "R-specific processing of return value. Insert hline if column names in output have been requested." (if column-names-p - (cons (car result) (cons 'hline (cdr result))) + (condition-case nil + (cons (car result) (cons 'hline (cdr result))) + (error "Could not parse R result")) result)) (provide 'ob-R) |