0
当我试图github上安装,使用:安装错误 “没有指定的包” - 试图从GitHub在Windows中安装slidify
install_github('slidify', 'ramnathv')
但我得到的follwing消息:
> install_github('slidify', 'ramnathv')
Installing github repo slidify/master from ramnathv
Downloading master.zip from https://github.com/ramnathv/slidify/archive/master.zip
Installing package from C:\Users\6E86~1\AppData\Local\Temp\RtmpYD4xRM/master.zip
Installing slidify
"C:/PROGRA~1/R/R-31~1.0/bin/i386/R" --vanilla CMD INSTALL "C:\Users\ \
ע\AppData\Local\Temp\RtmpYD4xRM\devtools1f901f6d4e5e\slidify-master" \
--library="C:/Program Files/R/R-3.1.0/library" --install-tests
Warning: invalid package 'C:\Users\ע\AppData\Local\Temp\RtmpYD4xRM\devtools1f901f6d4e5e\slidify-master'
Error: ERROR: no packages specified
Error: Command failed (1)
我也试过downlowding “slidify-master.zip” 并安装它localy使用:
install.packages("c:/r/packages/slidify-master.zip", repos = NULL, type="source")
但似乎没有发生,包未安装:
> library(slidify)
Error in library(slidify) : there is no package called ‘slidify’
我sessionInfo()是:
> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Hebrew_Israel.1255 LC_CTYPE=Hebrew_Israel.1255
[3] LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C
[5] LC_TIME=Hebrew_Israel.1255
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.5
loaded via a namespace (and not attached):
[1] digest_0.6.4 evaluate_0.5.5 httr_0.3 memoise_0.2.1 parallel_3.1.0
[6] RCurl_1.95-4.1 stringr_0.6.2 tools_3.1.0 whisker_0.3-2
什么想法?
您是否尝试指定参数?即'install_github(repos = ...,username = ...)' –
我认为这是因为R看到包名称为'slidingify-master',这是无效的。我相信@Ramnath很快会帮助你。 –
我认为这与Windows和编码有关。你能从github安装任何软件包吗?你可以试试'install_github(“knitr”,“yihui”)',这样我们就可以隔离'slidingify'的问题,或者你可以从github安装软件包。 – Ramnath