Unable to install packages- sf, tmap, leaflet

I am unable to install packages used for mapping. The packages- sf, leaflet and tmap are not getting installed. It shows an error in my disk C as shown below. I am unable to figure out what to do.

package ‘wk’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\NITHIN PRADEEP\OneDrive\Documents\R\win-library\4.1’ for modifying
Try removing ‘C:\Users\NITHIN PRADEEP\OneDrive\Documents\R\win-library\4.1/00LOCK’

Follow the instructions on the error message and delete that file

1 Like

Yes the issue is sorted. Thanks..

This topic was automatically closed 7 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.