Posted in Bioinformatics, Data Science, Neurology, R Language

Installing and Using R lanuage in Ubuntu

The World of Tomorrow
We are surrounded by data and tools that collects it. Every time you perform a web search on bing or use Google map to find a location; you are generating data. Those able to analyze data and extract knowledge that enables informed decision-making will be at a advantage. It is reminiscent of when software usage and basic computer skills went from a “convenience” to an “mandatory.”

Before we start changing the world with Data analysis/Data Science; first things first, lets get a basic tool for analyzing data up and running. Let’s pretend Microsoft Excel never came your mind. R language is the tool I will focus on in this blog. It is both a programming language and platform for data science.

Install on non-Linux Platforms
This blog will focus only on Linux and the command line installation (I am a Microsoft guy fighting hard to get away from GUI-addiction.) If you like an alternative means, check out this URL, select a country in it and follow the instructions:

For example, for United States, an image from Berkeley, select:

Installation on Ubuntu

  1. Open a command line
  2. Run command to update Linux (optional but recommended):
    sudo apt-get update
  3. Run command to install R Language:
    sudo apt-get install r-base

Running R Language
In command line, run this (its case sensitive):

Hello, World test
Here is a Hello, world test:

  1. To save a variable with a value, type:
    x <- "Hello, world"
  2. To print out the saved variable’s value, type:

To Close R Language Command Prompt
In command line, run this command (ts case sensitive):

Installing R Studio
The command line version is suitable for basic R language operations. However, for more real-world analysis, it would be better to use an IDE like R Studio

To begin installing R Studio, go to:

Search for the word “Ubuntu” on the page above and make sure you select the appropriate version that matches the bit (32 or 64) of your machine. Clicking on this will download a file for installation. Double click on the downloaded file and the Ubuntu Software Center will come up (if not, bring it up.) Follow the instructions.

You should be ready to use it, if you followed the steps in the blog loyally. Have fun.



I am a Developer interested in poking around with Bioinformatics and love Traditional Chinese music. I am based in Chicago, IL USA.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s