簡體   English   中英

在 R 上安裝 devtools 以及對 usethis 和 fs 的依賴問題

[英]Issue installing devtools on R and dependency on usethis and fs

我正在嘗試讓開發工具在devtools上工作。 我使用以下方法安裝了 package:

install.packages("devtools") 

當我跑步時

 library(devtools) 

我得到錯誤:

Loading required package: usethis
Error: package or namespace load failed for ‘usethis’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘fs’
Error: package ‘usethis’ could not be loaded

所以我嘗試使用install.packages('fs')安裝fs ,但是當我運行library(fs)時,我收到錯誤Error in library(fs): there is no package called 'fs'而且我安裝了usethis但我猜是取決於fs因為當我運行它時,我得到:

Error: package or namespace load failed for ‘usethis’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘fs’

我想知道如何解決這個問題?

我認為您需要 Rcpp package 依賴項。 安裝它:

install.packages("Rcpp", dependencies = TRUE)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM