3

我正在尝试安装 slidify 但它返回错误。我想这是目录名称引起的。

> 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 

你有什么想法来解决它吗?我用谷歌搜索但没有发现任何有用的东西

4

1 回答 1

0

试试这个方法,从 Windows 命令提示符安装 slidifyLibraries

http://thiagosilva.wordpress.com/2013/02/17/installing-slidify-on-a-windows-machine/

于 2013-08-17T15:43:59.940 回答