How to install R on CentOS

To install R on CentOS 7:

sudo yum install -y epel-release
sudo yum update -y
sudo yum install -y R

And lets just not finish it there, lets do a “Hello World” example. Open your favourite text editor and type:

myString <- "Hello, World!" print ( myString)

And run it with: Rscript helloworld.r