[英]Install R-Package from Github
我正在尝试从Github安装一个软件包,但它总是向我显示相同的错误:
> install_github("jfpalomeque/Momocs")
Installing github repo Momocs/master from jfpalomeque
Downloading master.zip from https://github.com/jfpalomeque/Momocs/archive/master.zip
Installing package from C:\DOCUME~1\Ged\CONFIG~1\Temp\RtmpE15W58/master.zip
Installing Momocs
"C:/ARCHIV~1/R/R-31~1.0/bin/i386/R" --vanilla CMD INSTALL "C:\Documents and \
Settings\Ged\Configuración \
local\Temp\RtmpE15W58\devtools5a86536733\Momocs-master" \
--library="C:/Archivos de programa/R/R-3.1.0/library" --install-tests
Warning: invalid package 'C:\Documents and Settings\Ged\Configuración local\Temp\RtmpE15W58\devtools5a86536733\Momocs-master'
Error: ERROR: no packages specified
Error: Command failed (1)
我的意见:
R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
请确保您拥有最新版本的devtools软件包。 目前这是1.5。要这样做
install.packages("devtools")
那你有3个选择:
1 :)您可以尝试在devtools包中使用不同的参数替代品。
install_github("Momocs",username="jfpalomeque")
2 :)另一种方法是尝试下载zip文件并使用R中的普通install.packages()函数安装它:
install.packages(file_name_and_path, repos = NULL, type="source")
3 :)你也可以从头上安装它
install.packages("Momocs")
因为它是与github包相同的版本和相同的作者。
问候
从github存储库安装最新的R包。
如果您的服务器/计算机上没有Internet访问权限,则安装R软件包的步骤。
希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.