ess-rdired:我收到此错误“现在没有ESS进程与此缓冲区关联". [英] ess-rdired: I get this error "no ESS process is associated with this buffer now"

查看:100
本文介绍了ess-rdired:我收到此错误“现在没有ESS进程与此缓冲区关联".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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)

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

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

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

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

现在没有ESS进程与此缓冲区关联."

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

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

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

推荐答案

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

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)

这篇关于ess-rdired:我收到此错误“现在没有ESS进程与此缓冲区关联".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆