Error After R Update; 'lib = "C:/Program Files/R/R-3.5.0/library"' is not writable

Use R with administrative privilege to install the package. If you are on Windows, right click on a R (not RStudio) shortcut and select "Run as administrator". Then install your package as usual (with install.packages("devtools")). After this, you can close this session and reopen RStudio.

1 Like