When you are installing R packages through CRAN, you may sometimes find packages failing to install, reporting that a dependency relies on a very new version of R.
One way to handle this is to add a MRAN snapshot to your environment.
First, you will add your R packages to the CRAN installer.
Then, click the gear icon next to R (CRAN) icon and add a date in the following form:
A few useful snapshots:
- https://cran.microsoft.com/snapshot/2019-04-15/ for R 3.5.3
- https://cran.microsoft.com/snapshot/2018-04-01/ for R 3.4.4
- https://cran.microsoft.com/snapshot/2017-03-15/ for R 3.3