我尝试直接从 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,但不想安装 Ubuntu 只是为了安装一个 R 包。下载 .zip 文件并在本地安装也不起作用。我的 R 版本是 3.0.1。
任何人都可以帮助安装该软件包?谢谢!