gpt4 book ai didi

R:安装失败 Slidify - 错误:命令失败 (1) 未被识别为 i/e 命令

转载 作者:行者123 更新时间:2023-12-03 19:35:50 26 4
gpt4 key购买 nike

我正在尝试安装 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)

最后,如果它对我有帮助,我会发布在 Windows 8 x64 上运行的 sessionInfo() 的结果:

> 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

你有什么办法解决它吗?我用谷歌搜索,但没有找到任何有用的东西

最佳答案

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

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

关于R:安装失败 Slidify - 错误:命令失败 (1) 未被识别为 i/e 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17853141/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com