cwatson / brainGraph

Graph theory analysis of brain MRI data
173 stars 51 forks source link

Error: package or namespace load failed for ‘brainGraph’: 'namespace:mediation' do not have ‘summary.mediate’ #16

Closed lzhyoung closed 4 years ago

lzhyoung commented 4 years ago

Hi, I can not load the brainGraph sucessfully. I had tried to reinstall R to 3.6.1, and all packages. However, it can not solve the problem. I guess the problem might because "mediation" package has deleted the "summary.mediate" object, while your packkage still use the name not available now. -lzy

lzhyoung commented 4 years ago

I am sorry for not giving the detail information.

library("brainGraph") 载入需要的程辑包:igraph

载入程辑包:‘igraph’

The following objects are masked from ‘package:stats’:

decompose, spectrum

The following object is masked from ‘package:base’:

union

Error: package or namespace load failed for ‘brainGraph’: 'namespace:mediation'没有出口‘summary.mediate’这个对象

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=Chinese (Simplified)_China.936 [2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 [4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] igraph_1.2.4.1

loaded via a namespace (and not attached): [1] RcppEigen_0.3.3.5.0 zoo_1.8-6 tidyselect_0.2.5
[4] xfun_0.10 mediation_4.5.0 lpSolve_5.6.13.3
[7] purrr_0.3.2 splines_3.6.1 lattice_0.20-38
[10] colorspace_1.4-1 expm_0.999-4 htmltools_0.4.0
[13] yaml_2.2.0 base64enc_0.1-3 survival_2.44-1.1
[16] rlang_0.4.0 nloptr_1.2.1 pillar_1.4.2
[19] foreign_0.8-71 glue_1.3.1 RColorBrewer_1.1-2 [22] stringr_1.4.0 munsell_0.5.0 gtable_0.3.0
[25] mvtnorm_1.0-11 htmlwidgets_1.5.1 latticeExtra_0.6-28 [28] knitr_1.25 htmlTable_1.13.2 Rcpp_1.0.2
[31] acepack_1.4.1 scales_1.0.0 backports_1.1.5
[34] checkmate_1.9.4 Hmisc_4.2-0 abind_1.4-5
[37] lme4_1.1-21 gridExtra_2.3 ggplot2_3.2.1
[40] digest_0.6.21 stringi_1.4.3 ggrepel_0.8.1
[43] dplyr_0.8.3 grid_3.6.1 ade4_1.7-13
[46] tools_3.6.1 sandwich_2.5-1 magrittr_1.5
[49] lazyeval_0.2.2 tibble_2.1.3 Formula_1.2-3
[52] cluster_2.1.0 crayon_1.3.4 pkgconfig_2.0.3
[55] MASS_7.3-51.4 Matrix_1.2-17 data.table_1.12.4
[58] minqa_1.2.4 assertthat_0.2.1 rstudioapi_0.10
[61] R6_2.4.0 rpart_4.1-15 boot_1.3-23
[64] nlme_3.1-140 nnet_7.3-12 compiler_3.6.1

cwatson commented 4 years ago

You are exactly right, the mediation package no longer exports that function. I am working on a major update that will fix this and plan on finishing in the next week. If it ends up looking like it will take longer, I will try to push a small bugfix update. I am sorry for the issue.

iueda123 commented 4 years ago

Hello, I'm interested in your brainGraph. But I faced with the same installation problem. I looking forward to your update!!

cwatson commented 4 years ago

Hi everyone, if you use devtools::install_github('cwatson/brainGraph'), then you should be able to install now without error. Please let me know if you continue to have issues.

jmruzek17 commented 4 years ago

@cwatson, that worked thanks!