brainGraph
brainGraph copied to clipboard
Conflict between different packages, robustness function, random error
Hi
Thank you for providing this nice R package. I really want to use it, but I ran into some problems:
- 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:
- 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:
PS: My installation method is: devtools::install_github('cwatson/brainGraph')
Sorry for such a late response.
- I cannot replicate that warning; I am able to plot with the smoother both before and after attaching brainGraph.
- 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).