Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict between different packages, robustness function, random error #29

Open
weibokong27 opened this issue Nov 22, 2021 · 1 comment

Comments

@weibokong27
Copy link

weibokong27 commented Nov 22, 2021

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')

@cwatson
Copy link
Owner

cwatson commented Nov 28, 2022

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 robustness function, random error #25.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants