请帮我在R中安装stringr包。结果是:
install.packages("stringi")
Installing package into ‘C:/Users/kozlovpy/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
пробую URL 'https://mran.revolutionanalytics.com/snapshot/2015-08-27/bin/windows/contrib/3.2/stringi_0.5-5.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
не могу открыть URL 'https://mran.revolutionanalytics.com/snapshot/2015-08-27/bin/windows/contrib/3.2/stringi_0.5-5.zip'
Вдобавок: Предупреждение:
В download.file(url, destfile, method, mode = "wb", ...) :
'InternetOpenUrl' не удалось: 'Операция прервана по таймауту'
Предупреждение в download.packages(pkgs, destdir = tmpd, available = available, :
скачивание пакета ‘stringi’ не удалось
sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Russian_Russia.1251 LC_CTYPE=Russian_Russia.1251 LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C
[5] LC_TIME=Russian_Russia.1251
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] plyr_1.8.2 tools_3.2.2 gtable_0.1.2 Rcpp_0.11.5 grid_3.2.2 digest_0.6.8 proto_0.3-10
感谢您的链接,zx8754。我试图在您的链接中关注推荐,结果是下一个(非正面):
这没有给出积极的结果:
install.packages(“stringr”,type =“source”)
将软件包安装到'C:/Users/kozlovpy/Documents/R/win-library/3.2'中 (因为'lib'未指明)
还要安装依赖项'stringi'
пробую网址'https://mran.revolutionanalytics.com/snapshot/2015-08-27/src/contrib/stringi_0.5-5.tar.gz'
内容类型'application / octet-stream'长度3639183字节(3.5 MB)
已下载3.5 MB
пробую网址'https://mran.revolutionanalytics.com/snapshot/2015-08-27/src/contrib/stringr_1.0.0.tar.gz'
内容类型'application / octet-stream'长度34880字节(34 KB)
已下载34 KB
Скачанныеисходникипакетовнаходятсяв
'C:\ Users \ kozlovpy \ AppData \ Local \ Temp \ RtmpgnfwL4 \ downloaded_packages'
Предупреждения:
1:работающаякоманда'“C:/PROGRA〜1 / RRO / R-32〜1.2 / bin / x64 / R”
CMD INSTALL -l“C:\ Users \ kozlovpy \ Documents \ R \ win-library \ 3.2”
C:\ Users \ kozlovpy \ AppData \ Local \ Temp \ RtmpgnfwL4 / downloaded_packages /stringi_0.5-5.tar.gz'имеетстатус1
2:Вinstall.packages(“stringr”,type =“source”):
установкапакета'stringi'имеетненулевойстатусвыхода
3:работающаякоманда'“C:/PROGRA〜1 / RRO / R-32〜1.2 / bin / x64 / R”
CMD INSTALL -l“C:\ Users \ kozlovpy \ Documents \ R \ win-library \ 3.2”
C:\ Users \ kozlovpy \ AppData \ Local \ Temp \ RtmpgnfwL4 / downloaded_pac
kages /stringr_1.0.0.tar.gz'имеетстатус1
4:Вinstall.packages(“stringr”,type =“source”):
установкапакета'stringr'имеетненулевойстатусвыхода
Github软件包显示下一个:
install_github(“hadley / stringr”)
正在下载github repo hadley / stringr @ master
ОшибкавloadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]]):
没有名为'stringi'的包。
install_github(“Rexamine / stringi”)
正在下载github repo Rexamine / stringi @ master
ОшибкавloadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]]):
没有名为'stringi'的包
选项(install.packages.check.source =“no”)也没有帮助
任何猜测我做错了什么?