When I click \"Build & Reload\" on the Build tab within RStudio, I get the following error:
==> devtools::document(roclets=c(\'rd\', \'collate\', \'namesp
Here's a convenient solution based on mathematical.coffee's comment:
Just run this from Rstudio:
writeLines("install.packages('devtools', repos = 'https://cran.rstudio.com/')", "inst.R") system("Rscript --vanilla inst.R")