Update R in Unix Shell
2
0
Entering edit mode
7.6 years ago
gokce.ouz ▴ 70

Hi,

Currently I am connecting my institute's server through unix shell to run R (My desktop is Windows). The version of R is 3.2.0. However, I want to update it to newer versions because ensembldb package does not work in 3.2.0.

When I googled which commands to use I always came up with the "sudo apt-get update" which is not working for my case as it is for ubuntu. Actually the admins downloaded the latest R to this "/mnt/software/src/R-3.3.1". But I do not know how to update R using that. I found the below code but If I run it, where is it going to install it ?

> cd /mnt/software/src/R-3.3.1
>./configure --prefix=/mnt/software/stow/R-3.3.1
>make
>make install

Sorry, I am really confused & clueless.

Best Regards,

Gokce

R update • 3.3k views
ADD COMMENT
2
Entering edit mode
7.6 years ago

./configure --prefix=/mnt/software/stow/R-3.3.1

I suspect you need superuser rights to install in this location. If that is the case, and so you get a permission denied error, you could install instead in your home directory, like:

./configure --prefix=$HOME/R
make && make install

R will then be in ~/R/bin/

ADD COMMENT
0
Entering edit mode

Thanks a lot for the suggestion.

ADD REPLY
1
Entering edit mode
7.6 years ago
Guangchuang Yu ★ 2.6k

Your R will be located in:

/mnt/software/stow/R-3.3.1/bin/R
ADD COMMENT
0
Entering edit mode

Thanks for the clarification.

ADD REPLY

Login before adding your answer.

Traffic: 2652 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6