problem installing/updating packages warning lib= "C:/Users/Soren/OneDrive/R/win-library/3.5"' is not writable

I keep getting this message when I try to update or install packages:

lib= "C:/Users/Soren/OneDrive/R/win-library/3.5"' is not writable

I'm a newbie to R, coming from SAS and cannot figure out how to set the libpath to NOT go to Onedrive

Try installing to the system level library (you would need to run as administrator)

.libPaths("C:/Program Files/R/R-3.5.2/library") # This has to match your actual R version
install.packages() # Then you can install the packages you want

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