【发布时间】:2012-03-29 10:22:47
【问题描述】:
我正在尝试从Github 安装ggbiplot 的开发版本。在安装过程中,我收到以下错误消息:
library(devtools)
install_github("ggbiplot", "vqv")
Installing github repo(s) ggbiplot/master from vqv
Installing ggbiplot.zip from https://github.com/vqv/ggbiplot/zipball
Installing ggbiplot
* checking for file 'C:\Users\Muhammad Yaseen\AppData\Local\Temp\Rtmpsx4n5u\vqv-ggbiplot-2623d7c/DESCRIPTION' ... OK
* preparing 'ggbiplot':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building 'ggbiplot_0.5.tar.gz'
cygwin warning:
MS-DOS style path detected: C:/Users/MUHAMM~1/AppData/Local/Temp/Rtmpsx4n5u/ggbiplot_0.5.tar.gz
Preferred POSIX equivalent is: /cygdrive/c/Users/MUHAMM~1/AppData/Local/Temp/Rtmpsx4n5u/ggbiplot_0.5.tar.gz
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Warning: invalid package 'Yaseen/R/win-library/2.14'
Error: ERROR: cannot cd to directory 'C:/Users/Muhammad'
Error: Command failed (1)
In addition: Warning message:
running command '"C:/PROGRA~1/R/R-214~1.2/bin/i386/R" CMD INSTALL C:\Users\MUHAMM~1\AppData\Local\Temp\Rtmpsx4n5u/ggbiplot_0.5.tar.gz --library=C:/Users/Muhammad Yaseen/R/win-library/2.14' had status 1
解决这个问题的任何想法。提前感谢您的帮助和时间。
编辑
从Github下载后,也试过了
install.packages("vqv-ggbiplot-2623d7c.tar.gz", repos=NULL, type="source")
产生了这个错误信息
Installing package(s) into ‘C:/Users/Muhammad Yaseen/R/win-library/2.14’
(as ‘lib’ is unspecified)
Error in untar2(tarfile, files, list, exdir) : unsupported entry type 'g'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-214~1.2/bin/i386/R CMD INSTALL -l "C:/Users/Muhammad Yaseen/R/win-library/2.14" "vqv-ggbiplot-2623d7c.tar.gz"' had status 1
2: In install.packages("vqv-ggbiplot-2623d7c.tar.gz", repos = NULL, :
installation of package ‘vqv-ggbiplot-2623d7c.tar.gz’ had non-zero exit status
【问题讨论】:
-
错误
ERROR: cannot cd to directory 'C:/Users/Muhammad'与invalid package 'Yaseen/R/win-library/2.14'结合表明问题出在您的目录路径中的空格(即C:/Users/Muhammad Yaseen)。 -
@mathematical.coffee:我可以从 CRAN 和 Github 安装所有其他软件包,并且只有这个特定软件包有问题。不知道为什么?任何解决方案。
-
建议您的 R 库路径或 R 路径中不要有空格。我猜
install_github中的某些内容没有引用防止空格的路径——看看(在你的第一个错误日志中)它是如何写的"running command ...R CMD INSTALL ... -library=C:/Users/Muhammad Yasseen/...",并且C:/Users/Muhammad Yasseen/..周围没有引号?那就是问题所在。 (对于R CMD INSTALL-type 命令,带空格的文件路径应该用引号括起来)。
标签: r github devtools ggbiplot