I am trying to install a R package.
When I try: install.packages("shinyBS")
I get the error:
package ‘shinyBS’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\xxxxx\OneDrive\Documents\R\win-library\3.6’ for modifying
Try removing ‘C:\Users\xxxxx\OneDrive\Documents\R\win-library\3.6/00LOCK’
How can I solve it?