Error in install packages!!

Error Information: Error in install.packages : ERROR: failed to lock directory ‘C:\Users\deyvi\OneDrive\Documents\R\win-library\3.6’ for modifying

Try removing ‘C:\Users\deyvi\OneDrive\Documents\R\win-library\3.6/00LOCK’

Description of issue - How can I change the location (default) of install packages?

Steps taken so far -

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version: 3.6.3
  • OS Version:
  • R Version:

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

Follow the instructions on the error message and delete that file, but also, if possible, try to move your package library to a non cloud-synced folder, R has compatibility issues with cloud-synced folders.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.