码迷,mamicode.com
首页 > 其他好文 > 详细

【R】tidyverse软件包,haven.so和readxl.so报错

时间:2019-12-20 18:20:53      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:assign   erro   nic   目标   make   iconv   undefined   icon   with   

安装错误

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")

【R】tidyverse软件包,haven.so和readxl.so报错

标签:assign   erro   nic   目标   make   iconv   undefined   icon   with   

原文地址:https://www.cnblogs.com/xiaofeiIDO/p/12074435.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!