Problem when starting RStudio under windows

Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'C:/Users/Radu/OneDrive - Universitatea Babes-Bolyai/Documents/R/win-library/4.0/knitr/Meta/package.rds', probable reason 'No such file or directory'

R has problems with synced folders, try setting your package library on a non-synced folder. You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file

# For example in a .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.4\\library"

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

Thank you! It helps me a lot.

This topic was automatically closed 21 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.