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