When you are installing packages, they are being installed in the library for R version 3.2. That is what the information in the console tells you in the line
Installing package into ‘C:/Users/Felipe/Documents/R/win-library/3.2’. And even though CRAN says R ≥ 3.1.2, from the error message it seems like it does not like version 3.2.2 after all.
It is important to realize that when you update R, it does not overwrite older versions of R (this way you can still use older versions of R, in case packages are not compatible). And your computer creates separate libraries for your packages. You have to make sure RStudio uses the correct version of R!
If you're on a Mac and download a new version of R and then open RStudio, it will automatically use the newest R version. For Windows, you should do this:
- Install and load
updateR() function. This will start the updating process of your R installation by: “finding the latest R version, downloading it, running the installer, deleting the installation file, copy and updating old packages to the new R installation.”
- From within RStudio, go to Help > Check for Updates to install newer version of RStudio (if available, optional).
Once you do this and restart RStudio and R, make sure to check the version of R that is being loaded, and that it is the latest version.
And, you indeed need RTools to download
dslabs, since it is not compiled. RTools is not a package, it is a piece of software that you need so you can download and compile binary packages. This does not happen often, most packages are already compiled and you don't need RTools. But I just checked and
dslabs is indeed binary.
I would recommend you use the function
install.Rtools() from the package
installr (same package as above): https://www.rdocumentation.org/packages/installr/versions/0.22.0/topics/install.Rtools
Now you should be able to get