I use Rstudio and try to add new packages through command console.
It fails to install it for this reason
install.packages(\"devtools\"); devtools::i
Just run RStudio as an administrator. Right-Click on it and choose run as Administrator