ComplexHeatmap安装了之后,加载一直报错,
报错信息如下:
> library(ComplexHeatmap)
载入需要的程辑包:grid
错误: package or namespace load failed for ‘ComplexHeatmap’:
loadNamespace()里算'Cairo'时.onLoad失败了,详细内容:
调用: dyn.load(file, DLLpath = DLLpath, ...)
错误: 无法载入共享目标对象‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Cairo/libs/Cairo.so’::
看样子是Cairo 没有加载上
尝试安装加载
BiocManager::install("Cairo")
library(Cairo)
安装正常,还是加载报错
错误: package or namespace load failed for ‘Cairo’:
loadNamespace()里算'Cairo'时.onLoad失败了,详细内容:
调用: dyn.load(file, DLLpath = DLLpath, ...)
错误: 无法载入共享目标对象‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Cairo/libs/Cairo.so’::
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Cairo/libs/Cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Cairo/libs/Cairo.so
Reason: image not found
首先百度
各种消息唯一可能有效的是简书某位的
解决方法:
1 终端安装
brew install cairo
2 重启R,安装Cairo
尝试之后重启还是不行
谷歌,论坛上有这样的
4 years ago的……好吧试试
You should download X11 for Mac, which is called XQuartz. It doesn't ship with OS X any more, so you have to download it separately from: https://www.xquartz.org/
安装之后就可以了!!!
开心嘻嘻~