本文介绍了为R安装data.table时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为R安装data.table库,但无法正常工作.我尝试同时使用CRAN和Bioconductor,但仍然收到错误消息,该软件包不适用于R 3.2.2:

I'm trying to install data.table library for R, but I can't get it to work.I've tried using both CRAN and Bioconductor but I keep getting an error that the package is not available for 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来说是个新手.

I really have no clue what to do...very new to R.

推荐答案

我在Windows 8上尝试使用RStudio(V 0.99.903)和R(最新版本3.3.1)安装data.table时遇到了类似的问题.发出命令install.packages('data.table'),但失败.对我有用的是直接用R运行install.packages.它已正确安装.

I faced a similar issue trying to install data.table using RStudio (V 0.99.903) and R (latest version 3.3.1) on windows 8. I issued the command install.packages('data.table') but it failed. What worked for me was running the install.packages with R directly. It got installed properly.

这篇关于为R安装data.table时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 06:15