[英]Error while installing shiny package in R
這是我的代碼:
install.packages("shiny")
然后在輸出中顯示如下:
Installing package into ‘C:/Users/werd/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘Rcpp’, ‘bitops’, ‘httpuv’, ‘caTools’, ‘RJSONIO’, ‘xtable’, ‘digest’, ‘htmltools’
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/Rcpp_0.11.2.zip'
Content type 'text/html; charset=UTF-8' length 1600 bytes
opened URL
downloaded 1600 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/bitops_1.0-6.zip'
Content type 'text/html; charset=UTF-8' length 1600 bytes
opened URL
downloaded 1600 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/httpuv_1.3.0.zip'
Content type 'text/html; charset=UTF-8' length 1596 bytes
opened URL
downloaded 1596 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/caTools_1.17.zip'
Content type 'text/html; charset=UTF-8' length 1598 bytes
opened URL
downloaded 1598 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/RJSONIO_1.3-0.zip'
Content type 'text/html; charset=UTF-8' length 1598 bytes
opened URL
downloaded 1598 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/xtable_1.7-3.zip'
Content type 'text/html; charset=UTF-8' length 1600 bytes
opened URL
downloaded 1600 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/digest_0.6.4.zip'
Content type 'text/html; charset=UTF-8' length 1596 bytes
opened URL
downloaded 1596 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/htmltools_0.2.4.zip'
Content type 'text/html; charset=UTF-8' length 1598 bytes
opened URL
downloaded 1598 bytes
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/shiny_0.10.1.zip'
Content type 'text/html; charset=UTF-8' length 1596 bytes
opened URL
downloaded 1596 bytes
Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'Rcpp/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
程序輸出的最后一部分顯示錯誤。 我轉到目標文件夾,發現沒有下載zip文件。 另外,我和我在一起有winzip。
程序輸出的最后一部分是:
Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'Rcpp/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
請幫助我該怎么辦。
直接轉到“ http://cran.rstudio.com/bin/windows/contrib/3.1/shiny_0.10.1.zip ”
將文件下載到筆記本電腦/ PC上。
然后運行命令:
install.packages(shiny_0.10.1.zip,repos = NULL)
檢查以下解決方案(它們是我在Google上搜索的結果):
1.將您的存儲庫更改為另一個存儲庫(國內存儲庫更好。)
2.只需更新操作即可:
install.packages("manipulate")
然后:
install.packages("shiny")
更改工作目錄,然后重試。
手動下載閃亮的軟件包並使用以下命令安裝:install.packages('D:/shiny_0.11.1.zip',repos = NULL,類型=“ source”)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.