sf package is not loading, reinstalled rcpp and restarted R studio, still it shows error

Error: package or namespace load failed for ‘sf’:
.onLoad failed in loadNamespace() for 'sf', details:
call: CPL_set_data_dir(prj)
error: function 'Rcpp_precious_remove' not provided by package 'Rcpp'

Warning in install.packages :
cannot remove prior installation of package ‘sf’
Warning in install.packages :
problem copying A:\uniba\SDM\R-4.0.5\library\00LOCK\sf\libs\x64\sf.dll to A:\uniba\SDM\R-4.0.5\library\sf\libs\x64\sf.dll: Permission denied
Warning in install.packages :
restored ‘sf’

The downloaded binary packages are in
C:\Users\UNEEBA\AppData\Local\Temp\RtmpsthuPb\downloaded_packages

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.