我将 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-name
和 ess-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/