Rtidyverse软件包,haven.so和readxl.so报错
Posted xiaofeiido
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rtidyverse软件包,haven.so和readxl.so报错相关的知识,希望对你有一定的参考价值。
安装错误
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/root/Miniconda3/lib/R/library/haven/libs/haven.so':
/root/Miniconda3/lib/R/library/haven/libs/haven.so: undefined symbol: libiconv
无法载入共享目标对象‘/home/R/x86_64-redhat-linux-gnu-library/3.6/00LOCK-readxl/00new/readxl/libs/readxl.so’::
/home/R/x86_64-redhat-linux-gnu-library/3.6/00LOCK-readxl/00new/readxl/libs/readxl.so: undefined symbol: libiconv
解决办法
withr::with_makevars(c(PKG_LIBS = "-liconv"), install.packages("haven"), assignment = "+=")
withr::with_makevars(c(PKG_LIBS = "-liconv"), install.packages("readxl"), assignment = "+=")
install.packages("tidyverse")
以上是关于Rtidyverse软件包,haven.so和readxl.so报错的主要内容,如果未能解决你的问题,请参考以下文章
RE文件管理器怎么删除自带软件,我已经刷机有root和权限管理,怎么删除...
SmartHeap error Handler recursively re-entered 我用威尔克姆绣花软件,关闭的时候出现这个,该怎么解决