diff --git a/contrib/babel/lisp/langs/org-babel-R.el b/contrib/babel/lisp/langs/org-babel-R.el index 1fe282625..67d0f41e3 100644 --- a/contrib/babel/lisp/langs/org-babel-R.el +++ b/contrib/babel/lisp/langs/org-babel-R.el @@ -44,7 +44,8 @@ called by `org-babel-execute-src-block'." (result-type (fourth processed-params)) (session (org-babel-R-initiate-session (first processed-params))) (vars (second processed-params)) - (column-names-p (cdr (assoc :colnames params))) + (column-names-p (and (cdr (assoc :colnames params)) + (string= "yes" (cdr (assoc :colnames params))))) (out-file (cdr (assoc :file params))) (augmented-body (concat