(CLI) tutorial

Installing R CLI Style

This entry is part 3 of 3 in the series (CLI) tutorial

This how-to is a command-line instruction (CLI) tutorial, a step-by-step guide to manually install R. I’m using Ubuntu server 13.10 r-base from the standard repositories, however you could substitute any of the r versions and Linux distribution as by your own requirements.

You need to conduct statistical analysis.

1. You have a Ubuntu system running,
2. you know how to login to your system,
3. you know how to get to a terminal, (I have no X there is only CLI)
4. and, MOST IMPORTANTLY the system has Internet access.

Install Steps:
1. First you need to install r-base, the base R package if it is not installed on your system.
sudo apt-get install r-base

2. Test your install

At this point you should see something like:
R version 3.01 (2013-05-16) –“Good Sport”
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-;inux-gnu (64-bit)
more stuff about R things….
Type ‘q()’ to quit R.

Now give R a spin:
>fred <- c(2,4,6,8)
>[1] 2 4 6 8
>fred [3]
>[1] 6

If everything went as planned it takes all of one minute to go through this process.


Series Navigation<< Linux, Apache, MySQL & PHP CLI Style

Leave a Reply