ess-rdired: I get this error "no ESS process is associated with this buffer now"
Asked Answered
S

1

9

To use ess-rdired to browse objects, I followed the ESS manual and added the following to my .emacs:

(autoload 'ess-rdired "ess-rdired"
  "View *R* objects in a dired-like buffer." t)

When I do M-x ess-rdired, a buffer listing the objects in your current environment appears.

However, when I press shortcuts like p, v I get this error:

"no ESS process is associated with this buffer now."

Besides, can ess-rdired update info of objects when they are changed?

Schaffner answered 18/12, 2012 at 10:18 Comment(2)
this is a known issue, at least in relation to Sweave. I believe (but am not certain) that it is fixed in the development version. The workaround I currently use is to use C-c C-s and associate the buffer with a running R process. Hope this helpsHansel
@richiemorrisroe, your method works after adding (setq-default ess-dialect "R"). Thanks. However, this problem seems not common. Is it because most people do not use it to manage workspace at all?Schaffner
E
4

I had the same problem and sure enough C-c C-s solves it. I added the following function to my dot emacs file to automate this. I mapped the function to C-c o which will load rdired or refresh it. Any improvements would be very welcome!

(defun ess-R-show-objects ()
  "Calls rdired and associates with R process"
  (interactive)
  (if (get-buffer "*R*") ;;Only run if R is running
      (progn
        (ess-rdired)
        (ess-rdired-switch-process))
    (message "No R process")
    )
  )
(global-set-key (kbd "\C-co") 'ess-R-show-objects)
Eximious answered 29/11, 2014 at 21:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.