我尝试直接从github下载R包:
library(devtools)
install_github("R-Websockets",username = "zeenogee")
然而,我总是以一个错误结束:
Installing github repo(s) R-Websockets/master from zeenogee
Installing R-Websockets.zip from https://github.com/zeenogee/R-Websockets/archive/master.zip
Installing websockets
"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\Steef\AppData\Local\Temp\Rtmpmc8IKG\R-Websockets-master" \
--library="C:/Users/Steef/Documents/R/win-library/3.0" --with-keep.source
* installing *source* package 'websockets' ...
** libs
*** arch - i386
ERROR: compilation failed for package 'websockets'
* removing 'C:/Users/Steef/Documents/R/win-library/3.0/websockets'
Error: Command failed (1)
我知道安装适用于Ubuntu,但我不想仅仅为了安装一个R包而安装Ubuntu。下载.zip文件并在本地安装也不起作用。我的R版本是3.0.1。
有没有人能帮我安装这个包?谢谢!
发布于 2013-05-23 04:58:34
安装RTools解决了这个问题。
https://stackoverflow.com/questions/16701121
复制相似问题