I can install the sf package, but whenever I try to load the package, it returns the following error:
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/sf_1.0-4.zip'
Content type 'application/zip' length 42008733 bytes (40.1 MB)
downloaded 40.1 MB
package ‘sf’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
Error: package or namespace load failed for ‘sf’:
.onLoad failed in loadNamespace() for 'units', details:
error: function 'Rcpp_precious_remove' not provided by package 'Rcpp'
In addition: Warning message:
package ‘sf’ was built under R version 4.1.2
What can I do in this respect? Please help!!!