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.
This commit is contained in:
Bastien 2020-05-24 16:08:52 +02:00
parent 010d1e3b6e
commit d9fe6aeafe
1 changed files with 3 additions and 1 deletions

View File

@ -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)