install_github不起作用 [英] install_github doesn't work
本文介绍了install_github不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图直接从github下载R包:
I tried to download R package directly from github:
library(devtools)
install_github("R-Websockets",username = "zeenogee")
然而我总是以一个错误结束:
however I always end up with an error:
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。
I know that the install works with Ubuntu but dont want to install Ubuntu just for installing one R package. Downloading the .zip file and isntalling locally also didn't work. My R version is 3.0.1.
任何人都可以帮助安装该软件包?谢谢!
Anyone can help with installing that package? Thanks!
推荐答案
安装RTools解决了这个问题。
Installing RTools solved that issue.
这篇关于install_github不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文