Entering edit mode
legro.melanie
•
0
@52b996fe
Last seen 3.8 years ago
Hello!
I have installed Complexheatmap but am receiving the following error when loading the package. Below is my code followed by output.
I tried installing the package "Cairo" and my system says it's installed but I still receive the same error.
Let me know if you need additional information!
> library(ComplexHeatmap)
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
> BiocManager::valid()
[1] TRUE
> traceback()
6: stop(msg, call. = FALSE, domain = NA)
5: value[[3L]](cond)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
3: tryCatchList(expr, classes, parentenv, handlers)
2: tryCatch({
attr(package, "LibPath") <- which.lib.loc
ns <- loadNamespace(package, lib.loc)
env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)
}, error = function(e) {
P <- if (!is.null(cc <- conditionCall(e)))
paste(" in", deparse(cc)[1L])
else ""
msg <- gettextf("package or namespace load failed for %s%s:\n %s",
sQuote(package), P, conditionMessage(e))
if (logical.return)
message(paste("Error:", msg), domain = NA)
else stop(msg, call. = FALSE, domain = NA)
})
1: library(ComplexHeatmap)
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rsubread_2.4.2 forcats_0.5.0 stringr_1.4.0 purrr_0.3.4
[5] readr_1.4.0 tidyr_1.1.2 tibble_3.0.4 tidyverse_1.3.0
[9] RColorBrewer_1.1-2 dplyr_1.0.2 edgeR_3.32.0 limma_3.46.0
[13] ggplot2_3.3.3 gplots_3.1.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 locfit_1.5-9.4 lubridate_1.7.9.2 lattice_0.20-41
[5] png_0.1-7 gtools_3.8.2 assertthat_0.2.1 digest_0.6.27
[9] R6_2.5.0 cellranger_1.1.0 backports_1.2.1 reprex_0.3.0
[13] evaluate_0.14 httr_1.4.2 pillar_1.4.7 rlang_0.4.10
[17] readxl_1.3.1 rstudioapi_0.13 Matrix_1.3-2 rmarkdown_2.6
[21] munsell_0.5.0 tinytex_0.28 broom_0.7.3 compiler_4.0.3
[25] modelr_0.1.8 xfun_0.20 pkgconfig_2.0.3 htmltools_0.5.0
[29] tidyselect_1.1.0 matrixStats_0.57.0 fansi_0.4.1 crayon_1.3.4
[33] dbplyr_2.0.0 withr_2.3.0 bitops_1.0-6 jsonlite_1.7.2
[37] gtable_0.3.0 lifecycle_0.2.0 DBI_1.1.0 magrittr_2.0.1
[41] scales_1.1.1 KernSmooth_2.23-18 cli_2.2.0 stringi_1.5.3
[45] fs_1.5.0 xml2_1.3.2 ellipsis_0.3.1 generics_0.1.0
[49] vctrs_0.3.6 tools_4.0.3 glue_1.4.2 hms_0.5.3
[53] yaml_2.2.1 colorspace_2.0-0 BiocManager_1.30.10 caTools_1.18.0
[57] rvest_0.3.6 knitr_1.30 haven_2.3.1
... yet ... I still think you have it in you, Jim :-p
Actually I have two old MacBook Pro laptops sitting under my desk as we speak. Gathering dust... So I did try, but couldn't get over the hump. Somehow it always seems to me that the goal for Apple is to make things easier for you by making it oh so much harder. I mean, when it's easier to install R on Windows with the ability to build source packages than on a Mac?
That worked! You rock and thank you for the fast response!