我正在尝试一些数据挖掘,并试图从Twitter检索数据。
当我尝试安装'twitteR‘软件包时,我会收到以下警告:
Warning in install.packages :
download of package ‘rjson’ failed但它会装载剩下的包裹。然后当我试图打电话给图书馆时:
> library(twitteR)
Loading required package: ROAuth
Loading required package: RCurl
Loading required package: bitops
Attaching package: ‘RCurl’
The following object is masked from ‘package:tm.plugin.webmining’:
getURL
Loading required package: digest
Error: package ‘rjson’ required by ‘twitteR’ could not be found这是合理的,如果它不能下载'rjson‘软件包最初。
当我试图单独安装'rjson‘软件包时,我得到了一个熟悉的错误:
> install.packages("rjson")
trying URL 'http://cran.rstudio.com/bin/macosx/contrib/3.0/rjson_0.2.13.tgz'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/bin/macosx/contrib/3.0/rjson_0.2.13.tgz'
Warning in install.packages :
download of package ‘rjson’ failed我不熟悉如何排除这些错误。任何帮助都是非常感谢的。
发布于 2014-06-12 23:10:02
如果你不想升级你的R(我们现在在3.1版),你可以从档案中安装。
install.packages("<local path to the downloaded gz file>", repos=NULL, type="source")希望这能成功。
https://stackoverflow.com/questions/24194458
复制相似问题