jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.31k stars 230 forks source link

Issue installing ComplexHeatmap in R > 4.0 #653

Closed pallavisurana1 closed 3 years ago

pallavisurana1 commented 3 years ago

Please provide example datasets and the code you use. It will help me to understand your problem and help you!

installation

library(devtools) install_github("jokergoo/ComplexHeatmap")

error

ERROR: lazy loading failed for package ‘ComplexHeatmap’

installation

if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager") BiocManager::install("ComplexHeatmap")

error

Error: package or namespace load failed for 'ComplexHeatmap': .onLoad failed in loadNamespace() for 'Cairo', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/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 In addition: Warning message: package 'ComplexHeatmap' was built under R version 4.0.3

jokergoo commented 3 years ago

Can you first remove the Cairo package by remove.packages("Cairo") and try again?

pallavisurana1 commented 3 years ago

Hi, i tried removing "Cairo" and re-installing it. Still gives me the following error:

Error: package or namespace load failed for 'ComplexHeatmap': .onLoad failed in loadNamespace() for 'Cairo', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/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 In addition: Warning message: package 'ComplexHeatmap' was built under R version 4.0.3

jokergoo commented 3 years ago

Can you first restart R, then install.packages("Cairo")?

jokergoo commented 3 years ago

Maybe this reason?

https://support.bioconductor.org/p/p133999/#p134005

pallavisurana1 commented 3 years ago

It works Thank you!

Regards, Pallavi Surana Website http://pallavisurana1.github.io

On Fri, 8 Jan 2021 at 16:59, Zuguang Gu notifications@github.com wrote:

Maybe this reason?

https://support.bioconductor.org/p/p133999/#p134005

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jokergoo/ComplexHeatmap/issues/653#issuecomment-757019638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN27N2UGFSKEBWAOVIEBFO3SY554BANCNFSM4USDEUAA .