LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2016, 04:45 PM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 398

Rep: Reputation: Disabled
How to get latest version of the R language on Linux Mint 17.3 Cinnamon 64bit?


I am using Linux Mint 17.3 Cinnamon 64bit.

I have installed the "R" language using the Software Manager, but it is only an old R version 3.0.2 (2013-09-25) "Frisbee Sailing", and the latest version is 3.3.1 "Bug In Your Hair" released on 21st July 2016.

I have had the old version on my computer for a long time and it has not updated itself at all, even though there have been several updated versions of R released since that version.

How do I install the latest version please? As a former Windows user please could I have this described step by step, telling me exactly what to type.

I recall from looking at the internet that I need to append some command(s) to the installation to make it update automatically. What are these please?

Finally, the textbook I have been reading, which described R for both Windows and Mac, says that there should be a GUI "console" in addition to the terminal and the graphics window. I have not seen any console in the version I currently have installed. How do I get this console to show itself, or does Linux not have one? (Have not done any graphics yet so do not know about any graphics window)

Thanks
 
Old 07-12-2016, 06:51 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Menu->Administration->Software Sources->Additional Repositories->Add a new repository: deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu trusty/ (or choose one of the other CRAN mirrors from the list at https://cran.r-project.org/mirrors.html)

Menu->Administration->Software Sources->Authentication keys->Download a key: E084DAB9

Close Software Sources window

Menu->Administration->Terminal

Code:
sudo apt-get update

sudo apt-get install r-base
If you want to install a GUI, download the free version of RStudio from http://www.rstudio.com/products/rstudio/download/ (choose the Ubuntu 12.04 version), then double click on the downloaded deb file to install it (it takes a while to install).

To run RStudio: Menu->Programming->RStudio.

There you go. Info taken from https://cran.r-project.org/. Any R updates will be listed in the Mint Update Manager.
 
Old 07-13-2016, 01:47 AM   #3
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 398

Original Poster
Rep: Reputation: Disabled
Thanks, I meant to ask about installing RStudio but had forgotten.

How do I install RCommander as well please?

What about the GUI console you apparently get in Windows and Mac - is there one in Linux?

Thanks again.
 
Old 07-13-2016, 04:34 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by grumpyskeptic View Post
Thanks, I meant to ask about installing RStudio but had forgotten.

How do I install RCommander as well please?

What about the GUI console you apparently get in Windows and Mac - is there one in Linux?

Thanks again.
To be honest, I'm not an expert. I'd never heard of R before I saw your post yesterday, but thought I'd help you out.

However, it appears to me that RStudio is the "GUI console" for R that you're looking for, although it's more properly termed an integrated development environment (IDE). R Commander is also a GUI, but allows you to run R commands without typing any code.

Taken from http://socserv.mcmaster.ca/jfox/Misc...ion-notes.html, you can install R Commander (assuming you have already installed R) by:

Menu->Administration->Terminal

Code:
sudo apt-get update

sudo apt-get install r-base-dev openjdk-7-jdk mesa-common-dev libglu1-mesa-dev

sudo R CMD javareconf

sudo R
From the R command prompt:

Code:
install.packages("Rcmdr")
The above command takes a *long* while to build and install R commander. Then, to open R Commander:

Code:
library(Rcmdr)
(if the above command asks you whether or not to install missing packages, choose "Yes" then "Ok).

Note that when I exited R Commander and R in the same R Commander command, any characters I typed in at the terminal were not displayed, so it's best to exit then relaunch the terminal in this case if you require it.

Last edited by hydrurga; 07-13-2016 at 05:39 AM. Reason: Dependencies
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No GRUBbootloader to choose os when starting pc - linux mint cinnamon 64bit fresh install wiegetz Linux - Software 2 05-19-2016 11:32 PM
Kernel panic after installing Linux Mint 17.2 64bit Cinnamon etta Linux - Laptop and Netbook 14 12-04-2015 01:20 AM
[SOLVED] Sudden folder disappearances on Linux Mint Rebecca Cinnamon after changing language kasizzle Linux Mint 7 04-28-2015 07:39 PM
Ultimate Linux MINT -Cinnamon- 64bit super_tux Linux Mint 1 09-03-2014 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration