Hey!
I can't install any packages, and although I have removed 00'lock, it still tells me:
package ‘InformationValue’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Lukas\OneDrive\Documents\R\win-library\4.1’ for modifying
Try removing ‘C:\Users\Lukas\OneDrive\Documents\R\win-library\4.1/00LOCK’
It's windows
I am absolutely not certain, but I would start checking if it is a OneDrive-issue. Try to install in a folder outside OneDrive: install.packages("packagename",lib="c:/Users/Lukas/R/....")
or something like that.
I also think that if you can upgrade to R4.2 it will automatically choose a folder outside OneDrive when you install packages.