I was trying to install some packages, such as, caret, ROCR, ggplot2, etc. They are not in library, so I wrote the code: install.packages(). Each time I select a package, it is unpacked, but I am unable to install, and error message comes, which is given below. Could anyone plz guide me how to proceed further, as I have another class tomorrow, and if I am unable to install all packages, I cannot do hands on practice in the class.
package ‘proxy’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Somaria Azam\OneDrive\Pictures\Documents\R\win-library\4.0’ for modifying
Try removing ‘C:\Users\Somaria Azam\OneDrive\Pictures\Documents\R\win-library\4.0/00LOCK’