要使用ess-rdired浏览对象,我遵循了ESS手册,并在.emacs中添加了以下内容:

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

当我执行M-x ess-rdired时,将出现一个列出当前环境中对象的缓冲区。

但是,当我按p,v之类的快捷方式时,会出现以下错误:



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

最佳答案

我遇到了同样的问题,并确定有足够的C-c C-s解决了该问题。我在我的dot emacs文件中添加了以下功能以使其自动化。我将该函数映射到C-c o,它将加载rdird或刷新它。任何改进将非常欢迎!

(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)

关于r - ess-dirdired : I get this error "no ESS process is associated with this buffer now",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13930713/

10-11 10:42