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

XML error when trying to read gexf #46

Open
JessicaFinck opened this issue Jan 17, 2025 · 0 comments
Open

XML error when trying to read gexf #46

JessicaFinck opened this issue Jan 17, 2025 · 0 comments

Comments

@JessicaFinck
Copy link

JessicaFinck commented Jan 17, 2025

Didn't see this under the closed issues tab, so here we go.

I've constructed my networks on Python with sparCC, and saved them as a gephi project. For easier analysis, I want to load them into microeco, for which I need to import them into R and convert them to igraph.

Within gephi, I used the export command to save my individual networks as gexf files. I can open these files without problem with gephi. However, when I try to import them into R using read.gexf I get the following error:
Error in XML::xmlParse(x, encoding = "UTF-8") : empty or no content specified

This is my R code:
NW_bac_psr1 = system.file("bac_psr1.gexf", package = "rgexf")
gephi_bac.psr1 = read.gexf(NW_bac_psr1)

What could be the cause of the error?

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

No branches or pull requests

1 participant