R for Machine Learning

Isham Mohamed
Jul 23, 2017 · 2 min read

I’m sure you have come across the word “Machine Learning” a million times by now unless you have been living under the locks for past twenty years and the R plays a major role in machine learning.I just got started with R and machine learning. As I learn I’ll continue on writing about them. R is a statistical programming software favored by many academia and due to the rise in data science and availability of libraries and being open source, the industry has started using R.

We will continue on learning about Machine Learning libraries and R codes in this series, but before getting there we have a problem to worry about, that is setting R and Rstudio on you Ubuntu machine. There are many resources for on installing R on Windows but I found it hard to install them on my Ubuntu machine.

Installing R:1: sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB92: sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'3: sudo apt-get update4: sudo apt-get install r-basesudo apt-get install r-base-devInstalling Rstudio:5: sudo apt-get install gdebi-core6: wget https://download1.rstudio.org/rstudio-1.0.44-amd64.debsudo 7: gdebi rstudio-1.0.44-amd64.deb8: rm rstudio-1.0.44-amd64.deb

In case of a installation fail u may want to change the link in step 2. Follow this link to get newer version.

By the end of step 8 you would have the setup done. To check the R version enter the following command in your terminal.(the R has to be in capital)

R --version

In case if you want to update the R base enter the following commands in your terminal.

sudo add-apt-repository ppa:marutter/rruttersudo apt-get updatesudo apt full-upgrade

Will be continued…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade