Getting error “In function ‘igraph_write_graph_graphml’:” while installing igraph package in R

前端 未结 3 818
心在旅途
心在旅途 2021-01-02 07:57

I am trying to install igraph package in R.But getting error in the foreign-graphml.c below:

foreign-graphml.c: In function ‘igraph_write_graph_graphml’:
for         


        
相关标签:
3条回答
  • 2021-01-02 08:36

    I had the same issue. Like the previous poster noted (zwartemond), its a bug in igraph. The owner of the github repo fixed the issue but it will take a while for the package to be updated on CRAN, you'll have to wait for some time(around 2 weeks?).

    To install igraph package directly from source use devtools:

    install.packages("devtools")
    library(devtools)
    install_github("igraph/rigraph")
    

    This worked for me.

    0 讨论(0)
  • 2021-01-02 08:47

    There is a bug in igraph, check this out: https://github.com/igraph/rigraph/issues/213

    0 讨论(0)
  • 2021-01-02 08:51

    I had the saime issue and solved it by typing the following in the terminal

    sudo apt-get install libssl-dev  
    sudo apt-get install libcurl4-openssl-dev
    sudo apt-get install libxml2-dev
    
    0 讨论(0)
提交回复
热议问题