當我點擊內RStudio生成選項卡上的「構建&刷新」,我得到以下錯誤:構建和刷新在RStudio在Windows上:devtools ::文檔()說,沒有發現devtools
==> devtools::document(roclets=c('rd', 'collate', 'namespace'))
Error in loadNamespace(name) : there is no package called 'devtools'
Calls: suppressPackageStartupMessages ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
Exited with status 1.
但當我剛剛直接輸入devtools::document(roclets=c('rd', 'collate', 'namespace'))
到控制檯,它的工作原理。另外,如果我在Build Tools - > Roxygen配置中取消選中「運行時自動roxygenize:」下的「Build & Reload」,錯誤消失。我使用devtools::install_github("hadley/devtools")
安裝了最新的devtools
。我正在使用Windows。
如果有人有意見,請提前致謝!
我得到相同的錯誤。只是好奇,你有一個自定義的庫位置,或者你只是使用默認? – PirateGrunt 2015-06-08 14:05:59
@PirateGrunt這是一個自定義位置。 – 2015-06-08 17:23:05
我的也是。我想知道RStudio是否正試圖從默認加載。 – PirateGrunt 2015-06-08 19:31:14