brainGraph icon indicating copy to clipboard operation
brainGraph copied to clipboard

Conflict between different packages, robustness function, random error

Open weibokong27 opened this issue 2 years ago • 1 comments

Hi

Thank you for providing this nice R package. I really want to use it, but I ran into some problems:

  1. When I load the two packages (brainGraph v 3.0.2 and ggplot2 v 3.3.5) at the same time, the line cannot be fitted:

{6C9FFBD2-E664-50A5-53B6-8146AA4CEB6D}

  1. robustness and vulnerability
robustness(g, type = "vertex", measure = c('random'))
 Error in { : task 3 failed - "Invalid vertex names" 

vulnerability(g, use.parallel=TRUE, weighted=FALSE)
Error in vuln[verts] <- foreach(i = verts, .combine = "c") %d% { : 
  replacement has length zero

I encountered the above error on both MacOS and Windows. I read the previous discussion and it seems that the brainGraph package is best to run on Linux?

This is my net file:

net.zip

PS: My installation method is: devtools::install_github('cwatson/brainGraph')

weibokong27 avatar Nov 22 '21 09:11 weibokong27

Sorry for such a late response.

  1. I cannot replicate that warning; I am able to plot with the smoother both before and after attaching brainGraph.
  2. I will look into this but it seems to be the same as #25.

P.S. In the future, please submit separate issues when they are unrelated (i.e., 1 and 2 in your post).

cwatson avatar Nov 28 '22 16:11 cwatson