I am trying to install the 'SnowballC' package in RStudio. I tried restarting R, clearing the environment, terminating all the sessions, and restarting and with a totally new session. But I keep getting this same error message:
package ‘SnowballC’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\User\Documents\R\win-library\3.6’ for modifying
Try removing ‘C:\Users\User\Documents\R\win-library\3.6/00LOCK’
What is the solution?