我正在尝试为 R 安装 data.table 库,但我无法让它工作。我尝试同时使用 CRAN 和 Bioconductor,但我一直收到错误消息,指出该软件包不适用于 R 3.2 .2:
> biocLite('data.table')
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.
Installing package(s) ‘data.table’
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘datatable’ is not available (for R version 3.2.2)
> install.packages("data.table")
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘data.table’ is not available (for R version 3.2.2)
我真的不知道该怎么做...对 R 很陌生。
最佳答案
我在尝试使用 RStudio (V 0.99.903) 和 R(最新版本 3.3.1)在 Windows 8 上安装 data.table 时遇到了类似的问题。我发出了命令 install.packages('data.table') 但是它失败了。对我有用的是直接使用 R 运行 install.packages。它已正确安装。
关于r - 为 R 安装 data.table 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32721775/