We committed to build the R client for 2 latest R <major>.<minor> version. However the latest R release version (3.5) is inconsistent across platform:
Also, CRAN notes that: "CRAN does not have Mac OS X systems and cannot check these binaries for viruses."
The proposal to solve the problem above is to install from source for all 3 platforms: Linux, Mac, and Windows.
Get the R source from https://cran.r-project.org/ under "R source" link on the left panel.
wget https://cran.r-project.org/src/base/R-3/R-3.5.0.tar.gz |
Unpack the zip file:
tar -xf R-3.5.0.tar.gz |
Compile the source code:
./configure make |
Then check the built system works correctly by
make check |
Then install
sudo make install rhome=/usr/local/R/R-3.5.0 |
Make link for R <major>.<minor>
sudo ln -s R-3.5.0 R-3.5 |
Update the alternatives for R:
sudo update-alternatives --install /usr/local/bin/R R /usr/local/R/R-3.5/bin/R 50 --slave /usr/local/bin/Rscript Rscript /usr/local/R/R-3.5/bin/Rscript sudo update-alternatives --set R /usr/local/R/R-3.5/bin/R # to view all alternatives update-alternatives --config R # to fix broken links yes '' | sudo update-alternatives --force --all |