ess-rdired: I get this error “no ESS process is associated with this buffer now”

帅比萌擦擦* 提交于 2019-12-10 03:05:31

问题


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?


回答1:


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)


来源:https://stackoverflow.com/questions/13930713/ess-rdired-i-get-this-error-no-ess-process-is-associated-with-this-buffer-now

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!