Entering edit mode
Hi,
I am trying to run WGCNA on R studio using R version 4.2.2. I was wondering if somebody can help debug it.
Thanks again.
Code should be placed in three backticks as shown below
library(WGCNA)
Error: package or namespace load failed for ‘WGCNA’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/preprocessCore/libs/preprocessCore.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/preprocessCore/libs/preprocessCore.so, 0x0006): Library not loaded: '/opt/R/arm64/gfortran/lib/libquadmath.0.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/preprocessCore/libs/preprocessCore.so'
Reason: tried: '/opt/R/arm64/gfortran/lib/libquadmath.0.dylib' (no such file), '/usr/local/lib/libquadmath.0.dylib' (no such file), '/usr/lib/libquadmath.0.dylib' (no such file)
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
sessionInfo( )
R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/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] stats graphics grDevices utils datasets methods base
other attached packages:
[1] fastcluster_1.2.3 dynamicTreeCut_1.63-1
loaded via a namespace (and not attached):
[1] Biobase_2.58.0 httr_1.4.4 bit64_4.0.5
[4] splines_4.2.2 foreach_1.5.2 Formula_1.2-4
[7] assertthat_0.2.1 stats4_4.2.2 latticeExtra_0.6-30
[10] blob_1.2.3 GenomeInfoDbData_1.2.9 impute_1.72.1
[13] pillar_1.8.1 RSQLite_2.2.19 backports_1.4.1
[16] lattice_0.20-45 glue_1.6.2 digest_0.6.31
[19] RColorBrewer_1.1-3 XVector_0.38.0 checkmate_2.1.0
[22] colorspace_2.0-3 htmltools_0.5.4 Matrix_1.5-1
[25] pkgconfig_2.0.3 zlibbioc_1.44.0 GO.db_3.16.0
[28] scales_1.2.1 jpeg_0.1-10 tibble_3.1.8
[31] htmlTable_2.4.1 KEGGREST_1.38.0 generics_0.1.3
[34] IRanges_2.32.0 ggplot2_3.4.0 cachem_1.0.6
[37] nnet_7.3-18 BiocGenerics_0.44.0 cli_3.4.1
[40] survival_3.4-0 magrittr_2.0.3 crayon_1.5.2
[43] deldir_1.0-6 memoise_2.0.1 fansi_1.0.3
[46] doParallel_1.0.17 foreign_0.8-83 data.table_1.14.6
[49] tools_4.2.2 lifecycle_1.0.3 matrixStats_0.63.0
[52] stringr_1.5.0 interp_1.1-3 S4Vectors_0.36.1
[55] munsell_0.5.0 cluster_2.1.4 AnnotationDbi_1.60.0
[58] Biostrings_2.66.0 compiler_4.2.2 GenomeInfoDb_1.34.4
[61] rlang_1.0.6 grid_4.2.2 RCurl_1.98-1.9
[64] iterators_1.0.14 rstudioapi_0.14 htmlwidgets_1.6.0
[67] bitops_1.0-7 base64enc_0.1-3 gtable_0.3.1
[70] codetools_0.2-18 DBI_1.1.3 R6_2.5.1
[73] gridExtra_2.3 knitr_1.41 dplyr_1.0.10
[76] fastmap_1.1.0 bit_4.0.5 utf8_1.2.2
[79] Hmisc_4.7-2 stringi_1.7.8 parallel_4.2.2
[82] Rcpp_1.0.9 vctrs_0.5.1 rpart_4.1.19
[85] png_0.1-8 tidyselect_1.2.0 xfun_0.35