Intaling AER. Error in install.packages : cannot open file 'C:/Users/USUARIO/OneDrive/Documentos/R/win-library/4.1/file83305f5125c1/parallelly/help/figures/logo.png': Permission denied

Hi,
I´m trying to install the package AER but this appears:
Error in install.packages : cannot open file 'C:/Users/USUARIO/OneDrive/Documentos/R/win-library/4.1/file83305f5125c1/parallelly/help/figures/logo.png': Permission denied

I´ve try by desinstaling 00LOCK but dosn´t apear.

R has problems with cloud synced folders (OneDrive in your case) I would recommend setting your package library in a non synced folder.

You can change the default library folder by setting your R_LIBS_SITE environmental variable in a .Reviron or .Rprofile file. For example:

# In a .Renviron file you can set it by adding a line like this one with the desired location 
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library"

For a more detailed explanation, you can read this blog post

It worked
Thank you!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.