diff options
author | Erik Iverson <iverson@biostat.wisc.edu> | 2010-08-23 23:06:55 -0400 |
---|---|---|
committer | Dan Davison <davison@stats.ox.ac.uk> | 2010-08-23 23:06:55 -0400 |
commit | 1d1439f91e63e71f39e93622a0af439762522c00 (patch) | |
tree | c53888426c7a5584419c4c593442daab5d704af0 | |
parent | 17c7786bb0fa596ca66a5d1b77022745918f659f (diff) | |
download | org-mode-1d1439f91e63e71f39e93622a0af439762522c00.tar.gz |
babel: R: Respect value of `ess-ask-for-ess-directory'
-rw-r--r-- | lisp/ob-R.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 2a11421..712ae51 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 |