当前位置:  开发笔记 > 开发工具 > 正文

软件包'stringr'和'stringi'的安装具有非零退出状态

如何解决《软件包'stringr'和'stringi'的安装具有非零退出状态》经验,为你挑选了1个好方法。

请帮我在R中安装stringr和stringi包.结果是:

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

我试图跟踪链接中的建议我应该如何处理"包'xxx'不可用(对于R版xyz)"警告?,结果是下一个(不是积极的):

    名字没问题

    只需设置所有可能的存储库

    包当然是存储库

    'stringr'当然是一个包

    我的R没有过时,我最近将它升级到3.2.0版本

    'stringr'不是归档包

    这没有给出积极的结果:

    install.packages("stringr",type ="source")将
    软件包安装到'C:/Users/kozlovpy/Documents/R/win-library/3.2'
    (未指定'lib')中,
    同时安装依赖项'stringi'

    пробуюURL" https://mran.revolutionanalytics.com/snapshot/2015-08-27/src/contrib/stringi_0.5-5.tar.gz "
    内容类型"应用/八位字节流"长度3639183个字节(3.5 MB )
    下载3.5 MB

    пробуюURL" https://mran.revolutionanalytics.com/snapshot/2015-08-27/src/contrib/stringr_1.0.0.tar.gz "
    内容类型"应用/八位字节流"长度34880个字节(34 KB)
    下载34 KB

    安装包'stringi'...
    **пакет'cordi'удачнораспакован,
    MD5sumsпровереныПредупреждение:работающаякоманда'sh./configure.win'имеетстатус127
    错误:包'stringi'配置失败

    删除'C:/Users/kozlovpy/Documents/R/win-library/3.2/stringi'
    错误:依赖'stringi'不适用于包'stringr'

    删除'C:/Users/kozlovpy/Documents/R/win-library/3.2/stringr'

    Скачанныеисходникипакетовнаходятсяв
    'C:\ Users \用户kozlovpy \应用程序数据\本地\ TEMP\RtmpgnfwL4\downloaded_pa​​ckages'
    Предупреждения:
    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_pa​​ckages/stringi_0.5-5.tar.gz 'имеетстатус12:В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:\用户\ kozlovpy \应用程序数据\本地的\ Temp\RtmpgnfwL4/downloaded_pa​​c
    kages /stringr_1.0.0.tar.gz'имеетстатус14:В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'

    options(install.packages.check.source ="no")也没有帮助

    试图进入不同的回购 - 没有希望.

任何猜测我做错了什么?



1> Fábio..:

先生,我试过这个:

install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
install.packages("stringr", dependencies=TRUE, INSTALL_opts = c('--no-lock'))

它对我有用,试一试!

推荐阅读
yzh148448
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有