我将 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
and 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 捆绑包,作者:Vincent Goulet http://vgoulet.act.ulaval.ca/en/emacs/windows/我可以全心全意地推荐它,因为“它确实有效”。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)