title: How to add new repository in CentOs
body: <p>I am trying to install readR package from R on EC2 instance.</p>
  
  <p>I found a solution on this <a href="https://stackoverflow.com/questions/40945512/r-ubuntu-cant-install-packages-readr-and-eurostat">post</a>:</p>
  
  <p>I would like the script for CentOS but the answer is for Ubuntu:</p>
  
  <pre><code>[1] apt-get update     # refresh
  [2] apt-get install software-properties-common
  [3] add-apt-repository -y "ppa:marutter/rrutter"
  [4] add-apt-repository -y "ppa:marutter/c2d4u"
  [5] apt-get update     # now with new repos
  [6] apt-get install r-cran-readr
  </code></pre>
  
  <p>Below is my attempt to translate, I understood line 2 is not necesary in my case, and what I am missing are the two lines allowing to add repositories in CentOs:</p>
  
  <pre><code>sudo yum update
  sudo mkdir ppa:marutter/rrutter
  sudo mkdir ppa:marutter/c2d4u
  sudo yum update
  sudo yum install r-cran-readr
  </code></pre>
  
  <p>Help much appreciated !</p>