我班上有一名学生在安装课程R套餐时遇到了问题,该套餐位于bitbucket上。他正在运行Windows版本8,64位。我尝试使用RStudio | Tools | Install Packages从包tar球直接安装,并得到了同样的错误。他没有安装Rtools,但我不知道这与此有什么关系。
似乎R CMD安装正在创建一个包含C:\Program Files ...
的批处理文件,并且空间正在导致问题。
我们非常感谢任何建议。
p rossi
> install_bitbucket("DataAnalyticsV1.0.0","perossichi")
Installing bitbucket repo(s) DataAnalyticsV1.0.0/master from perossichi
Downloading master.zip from https://bitbucket.org/perossichi/dataanalyticsv1.0.0/get/master.zip
Installing package from C:\Users\crist_000\AppData\Local\Temp\Rtmp6daA6F/master.zip
Installing DataAnalytics
"C:/Program Files/R/R-3.0.2/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\crist_000\AppData\Local\Temp\Rtmp6daA6F\devtools49e4748d6bfe\perossichi- dataanalyticsv1.0.0-84a47dab91db" \
--library="C:/Users/crist_000/Documents/R/win-library/3.0" --install-tests
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed (1)
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Spanish_Chile.1252 LC_CTYPE=Spanish_Chile.1252
[3] LC_MONETARY=Spanish_Chile.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Chile.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.4.1
loaded via a namespace (and not attached):
[1] digest_0.6.4 evaluate_0.5.1 httr_0.2 memoise_0.1 parallel_3.0.2
[6] RCurl_1.95-4.1 stringr_0.6.2 tools_3.0.2 whisker_0.3-2
答案 0 :(得分:2)
C:\
而不是C:\Program Files\
参考: https://github.com/ramnathv/rCharts/issues/333#issuecomment-32733936
奇怪的是这个bug不是devtools特有的。将R.EXE从Windows资源管理器拖到CMD.EXE窗口(在那里粘贴其路径),您会得到相同的错误。 RCMD.EXE不会发生这种情况。在Windows 7 64位上使用R 3.1.2进行测试。