I have just installed R and Rstudio, but when I try to install package through Rstudio, it says
Warning in install.packages : 'lib = "C:/Program Files/R/R-3.6.1/library"' is not writable Warning in install.packages : cannot create dir 'C:\Users\jimmy\OneDrive\??', reason 'Invalid argument' Error in install.packages : unable to create ‘C:/Users/jimmy/OneDrive/??/R/win-library/3.6’ Warning message: In dir.create(tempPath, recursive = TRUE) : cannot create dir 'C:\Users\jimmy\OneDrive\??', reason 'Invalid argument'
Anyone knows how to fix this?
- RStudio Edition: Desktop
- R Version: 3.6.1