8

为了用于ess-rdired浏览对象,我遵循 ESS 手册并将以下内容添加到我的.emacs

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

当我这样做时M-x ess-rdired,会出现一个列出当前环境中对象的缓冲区。

但是,当我按下快捷方式时pv我收到此错误:

“现在没有 ESS 进程与此缓冲区相关联。”

此外,ess-rdired对象的信息可以在更改时更新吗?

4

1 回答 1

3

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)
于 2014-11-29T21:48:44.603 回答