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