I'm having some trouble downloading the 'leaflet' package in R Studio. I run the command install.packages("leaflet") and receive the following error message:
install.packages("leaflet")
Installing package into ‘/Users/xyz/Library/R/3.6/library’ (as ‘lib’ is unspecified) also installing the dependencies ‘terra’, ‘raster’
There are binary versions available but the source versions are later:
binary source needs_compilation
terra 1.5-17 1.6-7 TRUE
raster 3.5-15 3.5-29 TRUE
leaflet 2.0.4.1 2.1.1 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel)
I have updated R Studio (and confirmed that I have the most up to date version). I am working on MacOS Big Sur, Version 11.5.1. I have also attempted to read through other discussion forums and I am unclear on how to troubleshoot this error.
Thank you for your guidance.