美文网首页
R安装stringr error

R安装stringr error

作者: 茉下忆 | 来源:发表于2022-04-28 17:45 被阅读0次

    报错内容如下:

    将程序包安装入‘/home/www/R/x86_64-pc-linux-gnu-library/4.1’
    (因为‘lib’没有被指定)
    试开URL’https://cloud.r-project.org/src/contrib/stringr_1.4.0.tar.gz'
    Content type 'application/x-gzip' length 135777 bytes (132 KB)
    ==================================================
    downloaded 132 KB
    
    * installing *source* package ‘stringr’ ...
    ** package ‘stringr’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in dyn.load(file, DLLpath = DLLpath, ...) : 
      无法载入共享目标对象‘/home/www/R/x86_64-pc-linux-gnu-library/4.1/stringi/libs/stringi.so’::
      libicui18n.so.67: 无法打开共享对象文件: 没有那个文件或目录
    Calls: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
    停止执行
    ERROR: lazy loading failed for package ‘stringr’
    * removing ‘/home/www/R/x86_64-pc-linux-gnu-library/4.1/stringr’
    
    The downloaded source packages are in
            ‘/tmp/RtmpAhVblJ/downloaded_packages’
    Warning message:
    In install.packages("stringr") :
      installation of package ‘stringr’ had non-zero exit status
    

    通过安装stringi来解决。

    install.packages("stringi")
    

    相关文章

      网友评论

          本文标题:R安装stringr error

          本文链接:https://www.haomeiwen.com/subject/zppdyrtx.html