diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 2a114214b..712ae516d 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -155,7 +155,8 @@ This function is called by `org-babel-execute-src-block'." "If there is not a current R process then create one." (unless (string= session "none") (let ((session (or session "*R*")) - (ess-ask-for-ess-directory (not (cdr (assoc :dir params))))) + (ess-ask-for-ess-directory + (and ess-ask-for-ess-directory (not (cdr (assoc :dir params)))))) (if (org-babel-comint-buffer-livep session) session (save-window-excursion