这是我的代码:
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
请帮助我做什么。
答案 0 :(得分:0)
直接转到" http://cran.rstudio.com/bin/windows/contrib/3.1/shiny_0.10.1.zip"
在笔记本电脑/ PC上下载文件。
然后运行命令:
install.packages(shiny_0.10.1.zip,repos = NULL)
答案 1 :(得分:0)
检查这些解决方案(这是我的谷歌搜索结果):
1。 将您的存储库更改为另一个存储库(国内存储库更好。)
2。 只需更新操作:
install.packages("manipulate")
然后:
install.packages("shiny")
更改工作目录,然后重试。
手动下载闪亮的包并使用以下命令安装: install.packages('D:/shiny_0.11.1.zip',repos = NULL,type =“source”)