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