首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法重新安装或运行Stringr包

无法重新安装或运行Stringr包
EN

Stack Overflow用户
提问于 2021-05-13 18:39:13
回答 1查看 160关注 0票数 1

我最近把ubuntu从18.04升级到20.04,这可能是相关的.

我的代码要求我有一个字符串包,并使用tidyverse。当我尝试运行require(stringr)library(tidyverse)时,我会收到以下错误:

代码语言:javascript
复制
> require(stringr) # String manipulation
Loading required package: stringr
Error: package or namespace load failed for ‘stringr’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/stringi/libs/stringi.so':
  libicui18n.so.60: cannot open shared object file: No such file or directory
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/stringi/libs/stringi.so':
  libicui18n.so.60: cannot open shared object file: No such file or directory

我尝试过使用install.packages("stringr")重新安装stringr,但之后

代码语言:javascript
复制
Installing package into ‘/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying 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
mv: cannot move '/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/stringr' to '/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-stringr/stringr': Permission denied
ERROR: cannot remove earlier installation, is it in use?
* removing ‘/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/stringr’
Warning in install.packages :
  installation of package ‘stringr’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmptRvgMm/downloaded_packages’

虽然看起来Stringr很好,但是当我尝试使用require(stringr)时,我最终得到了这个错误。

Loading required package: stringr Error: package or namespace load failed for ‘stringr’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/elrodlab/R/x86_64-pc-linux-gnu-library/3.6/stringi/libs/stringi.so': libicui18n.so.60: cannot open shared object file: No such file or directory

知道怎么处理这件事吗?

EN

回答 1

Stack Overflow用户

发布于 2021-05-13 19:01:45

第二条消息似乎表明stringr实际上已成功安装。再试一次

代码语言:javascript
复制
require(stringr)
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67524486

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档