ESS可以调用R的不同安装 [英] ESS to call different installations of R

查看:141
本文介绍了ESS可以调用R的不同安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是否已经在堆栈溢出这里已经被回答了。我的Unix机器上安装了Emacs-ESS,当我启动emacs时,R的特定版本被加载。
我现在有一些新的R包,我想在安装到默认R环境之前进行测试。因此,我在本地目录中安装了较新版本的R,并将我的新软件包安装在那里。现在,如果我想把这个更新的R版本,我安装在本地目录,从emacs,我应该怎么做?我想要能够调用默认的R版本或本地安装的R版本。

I am not sure if this has already been answered here on stack-overflow. I had Emacs-ESS installed on my Unix machine and when ever I start up emacs, particular version of R gets loaded. I now have some new R packages that I wanted to test before installing into default R environment. Hence I installed newer version of R in a local directory and have my new packages installed there. Now if I want to call this newer R version that I installed in a local directory, from emacs, how exactly should I be doing it? I want to be able to call either the default R version or the locally installed R-version.

感谢您的所有时间和帮助

Thanks for all your time and help

推荐答案

ESS可以启动其他版本的R,前提是它知道您所在系统的位置。以下粘贴在 ESS手册中的相关部分:

ESS can start other versions of R, provided that it knows where on your system they are located. Pasted below is the relevant section from the ESS manual:


如果系统上有其他版本的R或
S-Plus,则ESS为
能够启动这些版本。如何
这个正确的工作取决于您正在使用的操作系统
,如
以下段落中所述。一般的
原则,无论操作系统如何,都是
ESS搜索
变量exec-path中列出的用于R二进制文件的路径。如果
ESS找不到您的R二进制文件,在
Unix上,您可以更改unix
环境变量PATH,因为此
变量用于设置exec-path。

If you have other versions of R or S-Plus available on the system, ESS is also able to start those versions. How this exactly works depend on which OS you are using, as described in the following paragraphs. The general principle, regardless of OS, is that ESS searches the paths listed in the variable exec-path for R binaries. If ESS cannot find your R binaries, on Unix you can change the unix environment variable PATH, as this variable is used to set exec-path.

R在Unix系统上:如果您的exec路径上有
R-1.8.1,则可以使用Mx R-1.8启动
。 1。默认情况下,
ESS将找到R开始
R-1或R-2的版本。如果您的R
的版本被称为其他名称,请考虑
使用符号链接重命名它们,或
更改变量ess-r-versions。到
看到已经创建了哪些函数
用于启动不同版本的R,
键入M-x R-,然后按[Tab]。这些
其他版本的R也可以是
,从ESS->开始
进程 - >其他菜单开始。

R on Unix systems: If you have "R-1.8.1" on your exec-path, it can be started using M-x R-1.8.1. By default, ESS will find versions of R beginning "R-1" or "R-2". If your versions of R are called other names, consider renaming them with a symbolic link or change the variable ess-r-versions. To see which functions have been created for starting different versions of R, type M-x R- and then hit [Tab]. These other versions of R can also be started from the "ESS->Start Process->Other" menu.

这篇关于ESS可以调用R的不同安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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