Jef*_*son 11 r devtools rstudio
当我在RStudio中的Build选项卡上单击"Build&Reload"时,出现以下错误:
==> 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.
Run Code Online (Sandbox Code Playgroud)
但是,当我devtools::document(roclets=c('rd', 'collate', 'namespace'))直接进入控制台时,它可以工作.
此外,如果我在构建工具 - > Roxygen配置中取消选中"运行时自动氧化:"下的"构建和重新加载",则错误消失.
我安装了最新devtools的devtools::install_github("hadley/devtools").我正在使用Windows.
如果有人有任何建议,请提前感谢!
这是一个基于mathematic.coffee评论的便捷解决方案:
只需从 Rstudio 运行此命令:
writeLines("install.packages('devtools', repos = 'https://cran.rstudio.com/')", "inst.R")
system("Rscript --vanilla inst.R")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1369 次 |
| 最近记录: |