本文介绍了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 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在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的不同安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 03:43