emacs - ESS 在 windows 上找不到 Rterm.exe

标签 emacs ess

我将 R 安装在名为“X:\alphaAndOmega\R\R”的目录中。所以Rterm.exe(32位版本)位于“X:\alphaAndOmega\R\R\bin\i386”。我知道它不是“标准 R 目录”,而且“标准 R 目录”,如 R-3.0.0 很容易被 ESS 识别(至少如果我将它们添加到 Windows 中的 PATH 变量中)。

我尝试以某种方式自定义我的 .emacs 文件,ESS 会在我的非标准目录中查找 Rterm.exe,但我无法这样做。我对 emacs 完全陌生,我尝试使用以下一些命令:
inferior-R-program-nameess-rterm-version-paths
但我失败了。 ESS 没有找到任何东西。

我使用 emacs 24.3.1、ESS 13.05 和 R 2.15。目前我的 .emacs 文件只包含一行,所以这应该不是问题:
(require 'ess-site)
我该怎么做才能让 ESS 找到我的 Rterm.exe?

最佳答案

ess-site.el中确实只有一个配置设置;我过去用过那个。这是来自 ess-site.el但请注意,它已被注释掉:

;; If you wish to call other versions of R on a Unix system, ESS 
;; should auto-detect other versions of R, according to matches to the   
;; variable `ess-r-versions' as described in its docstring.  Consider   
;; changing that variable rather than changing inferior-R-program-name  
;; if your version of R is not already auto-detected.                  
;;(setq-default inferior-R-program-name "R")        ; unix systems    
;;(setq-default inferior-R-program-name "Rterm")    ; MS Windows, see below for path
;;(setq-default inferior-R-program-name "C:\\Program Files\\R\\R-2.5.0\\bin\\Rterm.exe")

我刚刚检查了我的工作机器,那里Rterm.exe默认情况下从 $PATH 中找到.我确实使用了 Emacs/ESS/AucTeX bundle by Vincent Goulet我可以全心全意地推荐它“它只是有效”。

关于emacs - ESS 在 windows 上找不到 Rterm.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16860694/

相关文章:

emacs - 在Emacs中,如何跳到文件顶部,然后返回到我的来源?

r - 当 C-c C-c 无响应时如何停止 ESS 中当前的执行进程?

r - 尝试访问 h_elp 时 emacs ess 崩溃

r - 为除 ESS 以外的所有缓冲区启用公司模式

java - 寻找 pydoc analog for java 以从命令行读取文档

emacs - 更改 Emacs 键映射(从 C-c s 到 C-\)

emacs - 在基于 Solaris 的远程服务器上找不到退出状态 "test -e ... "

emacs - 使用 Emacs/Org-Mode 添加列表中的项目值

r - 在 R 中以交互方式获取库的内容

Remacs-ESS 未在 mac 上绘图