无法安装dartR和软件包“以后”的问题(对于R版本3.5.1)

时间:2018-10-20 22:27:25

标签: r installation

我正在尝试安装dartR,以便至少通过“ dartR简介”教程的一部分进行工作。

我正在运行R版本3.5.1 我用过

install.packages("dartR")

得到

package ‘dartR’ successfully unpacked … 

然后当我尝试

library(dartR)

我知道

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

然后我用

 install.packages("adegenet")

我知道了:

 package ‘adegenet’ successfully unpacked …

然后重复

library(dartR)

我知道

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

但是经过更多的谷歌搜索之后,我尝试了

 install.packages("later", repos = "http://r-forge.r-project.org/")

返回

 Warning in install.packages :
package ‘later’ is not available (for R version 3.5.1)

我知道https://cran.r-project.org/web/packages/available_packages_by_name.html#available-packages-L可以使用later 经过更多的谷歌搜索后,我尝试了

 #An alternative is to install from the github CRAN mirror.
> library(remotes)
> install_github("cran/later")
Downloading GitHub repo cran/later@master
trying URL 'https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe'
Content type 'application/x-msdownload' length 108622512 bytes (103.6 MB)
downloaded 103.6 MB

Error: Could not find tools necessary to compile a package

现在我没主意了。有人可以帮我吗?

谢谢

0 个答案:

没有答案