ESS在Windows上找不到Rterm.exe [英] ESS does not find Rterm.exe on windows

查看:359
本文介绍了ESS在Windows上找不到Rterm.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我尝试以某种方式自定义我的.emacs文件,ESS会在我的非标准目录中查找Rterm.exe,但是我无法这样做。我是emacs的绝对新手,我试着玩一些以下命令:



lower-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 ,但请注意,它已被注释掉:

 code> ;;如果您希望在Unix系统上调用R的其他版本,则ESS 
;;应自动检测其他版本的R,根据匹配的
;;变量`ess-r-versions',如其docstring所述。考虑
;;改变这个变量,而不是改变劣质的R程序名称
;;如果您的R版本尚未自动检测到。
;;(setq-default lower-R-program-nameR); unix系统
;;(setq-default inferior-R-program-nameRterm); MS Windows,请参阅以下路径
;;(setq-default inferior-R-program-nameC:\\Program Files\\R\\R- 2.5.0\\\ \\ bin \\\\ Rterm.exe)

我刚刚检查了我的工作机器在 $ PATH 中默认找到 Rterm.exe 。我确实使用我可以使用的文森特Goulet的Emacs / ESS / AucTeX软件包全心全意地推荐为它只是工作。


I installed R in a directory called "X:\alphaAndOmega\R\R". So Rterm.exe (32-Bit version) is located in "X:\alphaAndOmega\R\R\bin\i386". I know that it's not a 'standard R-directory' and that "standard R-directories", like R-3.0.0 are easily recognized by ESS (at least if I add them to my PATH variable in Windows).

I tried customizing my .emacs file in a way, that ESS would look for Rterm.exe in my non-standard directory, but I wasn't able to do so. I'm absolutely new to emacs and i tried playing around wird some of the following commands:

inferior-R-program-name and ess-rterm-version-paths

But I failed. ESS doesn't find anything.

I use emacs 24.3.1, ESS 13.05 and R 2.15. At the moment my .emacs file contains just one line, so that shouldn't be a problem:

(require 'ess-site)

What can I do to make ESS find my Rterm.exe?

解决方案

There really only is one configuration setting in ess-site.el; I have used that one in the past. Here it is from ess-site.el but note that it is commented-out:

;; 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")

And I just checked on my work machine, and there Rterm.exe is found by default from the $PATH. I do use the Emacs/ESS/AucTeX bundle by Vincent Goulet which I can wholeheartedly recommend as "it just works."

这篇关于ESS在Windows上找不到Rterm.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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