1

How to upgrade (not install new) R-studio on Linux Mint 17.2 Rafaela?

These commands are correct?

sudo gedit /etc/apt/sources.list
sudo apt-get update
sudo apt-get install r-base.
Oktu
  • 187
  • 1
  • 4
  • 10
  • Have your tried these commands and got error? Try them, see if they are correct. – M-- May 23 '17 at 16:21
  • OP is right to be careful before trying `sudo` commands if he doesn't understand them. Try it and see what happens is usually good advice, but not so with `sudo`... – Aurèle May 23 '17 at 16:37
  • Oh, by the way, I misread the question. This has nothing to do with upgrading RStudio, the IDE. It's about upgrading R, the statistical software. You should understand the difference between both. Upgrading RStudio is a matter of clicking the Help tab, then Check for updates – Aurèle May 23 '17 at 16:40

2 Answers2

1

On Linux Mint 17.3, I personally just use the link from the RStudio website whenever I want to update:

https://www.rstudio.com/products/rstudio/download/

I use the .deb link for Ubuntu/64 bit (Mint is built over Ubuntu).

The commands you are trying to run suggest you're trying to upgrade R, not RStudio (an IDE for programming in R)...

For upgrading R itself, I follow my own answer here, which is basically to grab a .deb file for R from the RStudio website here.

MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
  • I have downloaded the file and what I have to do for updating Rstudio? – Oktu May 23 '17 at 16:46
  • @Oktu opening the .deb file automatically opens the Package Installer GUI utility, and I can just hit "Install Package". Simple as that... – MichaelChirico May 23 '17 at 16:47
0

The R version in the default system repositories is a few minors behind. You have to make it explicit that you want to get R from a more up-to-date source.

You should add the following line:

deb https://cloud.r-project.org/bin/linux/ubuntu trusty/

to the file /etc/apt/sources.list, as described at https://cran.r-project.org/bin/linux/ubuntu/#installation.
(trusty is the nickname of the ubuntu version Mint 17 is based on (Ubuntu 14.04 Trusty Tahr))

Then sudo apt-get update && sudo apt-get install r-base-dev at the command line should update R to the current version (3.4 as of today).

Aurèle
  • 12,545
  • 1
  • 31
  • 49
  • trying to understand: the first command is: sudo gedit /etc/apt/sources.list and then deb https://cloud.r-project.org/bin/linux/ubuntu trusty/ or it's the whole command? – Oktu May 23 '17 at 16:32
  • It's either: `sudo gedit /etc/apt/sources.list` then you add the `deb ...` line by hand once gedit is opened, then save and close. Or you could directly do `echo "deb https://cloud.r-project.org/bin/linux/ubuntu trusty/" | sudo tee --append /etc/apt/sources.list` instead of `sudo gedit /etc/apt/sources.list` – Aurèle May 23 '17 at 16:34