安装错误

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

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-06-02
  • 2021-12-14
  • 2021-12-25
  • 2022-03-01
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-01-03
  • 2021-08-30
  • 2021-04-22
相关资源
相似解决方案