2013-07-25 65 views
3

我試圖安裝slidingify但它返回一個錯誤。 我想這是由於目錄名稱。R:安裝失敗Slidify - 錯誤:命令失敗(1)未被識別爲I/e命令

> library(devtools) 
> install_github('slidify', 'ramnathv') 
Installing github repo(s) slidify/master from ramnathv 
Downloading slidify.zip from https://github.com/ramnathv/slidify/archive/master.zip 
Installing package from C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx/slidify.zip 
Installing slidify 
"C:/Program Files/R/R-3.0.1/bin/x64/R" --vanilla CMD INSTALL \ 
"C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx\slidify-master" \ 
--library="C:/Users/matte_000/Documents/R/win-library/3.0" --with-keep.source -- install-tests 

"C:\Program" 'R' is not recognized as an internal or external command, operable program or batch file 
Error: Command failed (1) 

> install_github('slidifyLibraries', 'ramnathv') 
Installing github repo(s) slidifyLibraries/master from ramnathv 
Downloading slidifyLibraries.zip from https://github.com/ramnathv/slidifyLibraries/archive/master.zip 
Installing package from C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx/slidifyLibraries.zip 
Installing slidifyLibraries 
"C:/Program Files/R/R-3.0.1/bin/x64/R" --vanilla CMD INSTALL \ 
"C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx\slidifyLibraries-master" \ 
--library="C:/Users/matte_000/Documents/R/win-library/3.0" --with-keep.source --install-tests 

"C:\Program" 'R' is not recognized as an internal or external command, operable program or batch file 
Error: Command failed (1) 

我在r新,我試圖連下面的代碼來手動安裝:

> pkgs = c("slidify","slidifyLibraries") 
> install.packages(pkgs,lib="C:/Users/matte_000/Documents/R/win-library/3.0","https://github.com/ramnathv/slidify/archive/master.zip", repos = NULL) 
Warning in install.packages : 
packages ‘slidify’, ‘slidifyLibraries’ are not available (for R version 3.0.1) 
Warning in install.packages : 
cannot open: HTTP status was '404 Not Found' 
Warning in install.packages : 
cannot open: HTTP status was '404 Not Found' 
Warning in install.packages : 
unable to access index for repository https://github.com/ramnathv/slidify/archive/master.zip 
Warning in install.packages : 
packages ‘slidify’, ‘slidifyLibraries’ are not available (for R version 3.0.1) 

最後,如果它可以幫助我發佈sessionInfo()的結果,在Windows 8的x64運行:

> sessionInfo() 
R version 3.0.1 (2013-05-16) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 

locale: 
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252 
[4] LC_NUMERIC=C     LC_TIME=Italian_Italy.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] devtools_1.3 

loaded via a namespace (and not attached): 
[1] digest_0.6.3 evaluate_0.4.4 httr_0.2  memoise_0.1 parallel_3.0.1 RCurl_1.95-4.1 stringr_0.6.2 
[8] tools_3.0.1 whisker_0.3-2 

你有什麼想法解決它嗎? 我谷歌,但沒有發現任何有用的

回答

相關問題