Fix org-babel-R-initiate-session
commitfe98647f14064b49d0cbed57e90681ced8f9f34e
authorAaron Ecay <aaronecay@gmail.com>
Mon, 1 Apr 2013 05:42:15 +0000 (1 01:42 -0400)
committerEric Schulte <schulte.eric@gmail.com>
Wed, 3 Apr 2013 15:17:06 +0000 (3 09:17 -0600)
tree1ec085342c58205049f1e587c013cf4a9b9a36f2
parent2f39a704cfc56083ad1568fae9f3a5352145629e
Fix org-babel-R-initiate-session

* lisp/ob-R.el (org-babel-R-initiate-session): handle case where the
  session buffer exists, but does not have a live process

If the session buffer exists, but the user has exited the R process
manually, then the (R) command will create a new buffer, then try to
rename it over the old buffer, causing an error.  The right thing to do
is to start R within the existing buffer.
lisp/ob-R.el