Build & Reload in RStudio on Windows: devtools::document() says devtools not found

前端 未结 4 800
清酒与你
清酒与你 2021-02-07 12:17

When I click \"Build & Reload\" on the Build tab within RStudio, I get the following error:

==> devtools::document(roclets=c(\'rd\', \'collate\', \'namesp         


        
4条回答
  •  萌比男神i
    2021-02-07 12:42

    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")
    

提交回复
热议问题