Function: org-babel-R-associate-session

org-babel-R-associate-session is a byte-compiled function defined in ob-R.el.gz.

Signature

(org-babel-R-associate-session SESSION)

Documentation

Associate R code buffer with an R session.

Make SESSION be the inferior ESS process associated with the current code buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-R.el.gz
(defun org-babel-R-associate-session (session)
  "Associate R code buffer with an R session.
Make SESSION be the inferior ESS process associated with the
current code buffer."
  (when-let* ((process (get-buffer-process session)))
    (setq ess-local-process-name (process-name process))
    (ess-make-buffer-current))
  (setq-local ess-gen-proc-buffer-name-function (lambda (_) session)))