Trouble installing and loading packages in older versions of R

Viewed 17

I typically work in R version 4.2.1, but I need to create some R visuals in Power Bi which is only compatible with R versions 3.4.4 or older. Fair play! So I installed version 3.4.4, but can't seem to install and load any of my required packages in it (dplyr, leaflet, sf).

For example when I run install.packages("leaflet") I get an essay in my console, by the last line is:

The downloaded source packages are in
    ‘C:\Users\myname\AppData\Local\Temp\RtmpCMY0LR\downloaded_packages’

I see no issue with that, so I run library(leaflet) and get this error message:

Error in library(leaflet) : there is no package called ‘leaflet’

Pretty frustrating! Any advice would be appreciated!

0 Answers
Related