无法在RStudio中安装软件包 - 下载后被阻止

时间:2018-06-08 06:24:51

标签: r rstudio r-package

我正在尝试在RStudio中安装“sqldf”软件包,但是在下载了几个软件包后它会阻塞

R version 3.5.0 (2018-04-23)


> install.packages("sqldf")
Installing package into ‘C:/Users/sperga/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘BH’, ‘plogr’, ‘gsubfn’, ‘proto’, ‘RSQLite’, ‘DBI’, ‘chron’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/BH_1.66.0-1.zip'
Content type 'application/zip' length 17880019 bytes (17.1 MB)
downloaded 17.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/plogr_0.2.0.zip'
Content type 'application/zip' length 18718 bytes (18 KB)
downloaded 18 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/gsubfn_0.7.zip'
Content type 'application/zip' length 357663 bytes (349 KB)
downloaded 349 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/proto_1.0.0.zip'
Content type 'application/zip' length 471954 bytes (460 KB)
downloaded 460 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/RSQLite_2.1.1.zip'
Content type 'application/zip' length 2154846 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/DBI_1.0.0.zip'
Content type 'application/zip' length 887210 bytes (866 KB)
downloaded 866 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/chron_2.3-52.zip'
Content type 'application/zip' length 198130 bytes (193 KB)
downloaded 193 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sqldf_0.4-11.zip'
Content type 'application/zip' length 78155 bytes (76 KB)
downloaded 76 KB

我也试图回避CRAN,但它没有用。

非常感谢!

1 个答案:

答案 0 :(得分:0)

我遇到了确切的问题,但是我加载了RGui,以管理员身份运行,键入安装命令(为我输入install.packages(“ ez”)),然后让它运行。约10分钟的固化时间结束。可能是您等待的时间不够长。