You can also update R from within R by using a handy package called installr.
Open R Console (NOT RStudio, this doesn't work from RStudio) and run the following code to install the package and initiate update.
install.packages("installr")
library("installr")
updateR()