title: Upgrade R in Ubuntu xenial
body: <p>I am trying to update R in my Ubuntu Xenial machine. When I run:</p>
  
  <pre><code>R --version 
  </code></pre>
  
  <p>the output is</p>
  
  <pre><code>R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
  </code></pre>
  
  <p>I have been checking a lot of post about how to do it. My main steps have been:</p>
  
  <p>Open the source list and add the link</p>
  
  <pre><code>sudo nano /etc/apt/sources.list
  deb http://cran.rstudio.com/bin/linux/ubuntu xenial/
  </code></pre>
  
  <p>(Maybe I am adding the link in the wrong place of the source.list? I don't know, I am new in Ubuntu). After adding the link, I save and exit the source.list. Then my steps have been:</p>
  
  <pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
  gpg -a --export E084DAB9 | sudo apt-key add -
  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install r-base
  </code></pre>
  
  <p>Once the process is finished, I run again:</p>
  
  <pre><code>R --version
  </code></pre>
  
  <p>And the output is still </p>
  
  <pre><code>R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
  </code></pre>
  
  <p>I don't have a lot of experience with Linux yet but based on previous post and their solutions I cannot manage to solve the problem.</p>
  
  <p>By the way, I need to update R since some of the packages I need to use (such as rgdal) are not available under the version I currently have </p>
  
  <p>Thanks for the help</p>
  
  <p>M</p>