I had R-2.14 installed before. And I just installed R-3.1.1 from a tar.gz file.
之前我安装了R-2.14。我刚从tar.gz文件安装了R-3.1.1。
Now if I use command
现在,如果我使用命令
user$R
I will bring up the R-2.14.
我将提出R-2.14。
I can only use R-3.1.1 by command:
我只能通过命令使用R-3.1.1:
user$~/R3installedFolder/R/bin/R
Question: How can I configure "R" as the command to bring up R-3.1.1? I am new to Linux/Ubuntu. I want to keep both Rs in the same system. Thanks.
问题:如何配置“R”作为调出R-3.1.1的命令?我是Linux / Ubuntu的新手。我想将两个R保持在同一个系统中。谢谢。
1 个解决方案
#1
1
What you probably want is to set the correct version to run by setting the appropriate values in update-alternatives
. Take a look at the Ubuntu manpages for more details.
您可能想要的是通过在update-alternatives中设置适当的值来设置要运行的正确版本。有关更多详细信息,请查看Ubuntu联机帮助页。
My guess is that you need to run update-alternatives --config <your program>
.
我的猜测是你需要运行update-alternatives --config <你的程序> 。
e.g. from the man page:
例如从手册页:
To choose a particular vi implementation, use this command as root and then select a number from the list:
要选择特定的vi实现,请以root身份使用此命令,然后从列表中选择一个数字:
update-alternatives --config vi
#1
1
What you probably want is to set the correct version to run by setting the appropriate values in update-alternatives
. Take a look at the Ubuntu manpages for more details.
您可能想要的是通过在update-alternatives中设置适当的值来设置要运行的正确版本。有关更多详细信息,请查看Ubuntu联机帮助页。
My guess is that you need to run update-alternatives --config <your program>
.
我的猜测是你需要运行update-alternatives --config <你的程序> 。
e.g. from the man page:
例如从手册页:
To choose a particular vi implementation, use this command as root and then select a number from the list:
要选择特定的vi实现,请以root身份使用此命令,然后从列表中选择一个数字:
update-alternatives --config vi