Getting error "In function ‘igraph_write_graph_graphml’:" while installing igraph package in R -
i trying install igraph package in r.but getting error in foreign-graphml.c below:
foreign-graphml.c: in function ‘igraph_write_graph_graphml’: foreign-graphml.c:1408:46: error: expected ‘)’ before ‘graphml_namespace_uri’ ret=fprintf(outstream, "<graphml xmlns=\"" graphml_namespace_uri "\"\n"); ^ foreign-graphml.c:1412:59: error: expected ‘)’ before ‘graphml_namespace_uri’ ret=fprintf(outstream, " xsi:schemalocation=\"" graphml_namespace_uri ^ foreign-graphml.c:1414:38: error: expected ‘)’ before ‘graphml_namespace_uri’ ret=fprintf(outstream, " " graphml_namespace_uri "/1.0/graphml.xsd\"> ^ /usr/lib/r/etc/makeconf:134: recipe target 'foreign-graphml.o' failed make: *** [foreign-graphml.o] error 1 error: compilation failed package ‘igraph’ * removing ‘/home/evangeline/r/x86_64-pc-linux-gnu-library/3.2/igraph’ downloaded source packages in ‘/tmp/rtmp9ebtml/downloaded_packages’ warning message: in install.packages("igraph") : installation of package ‘igraph’ had non-zero exit status
kindly me out.
please find sessioninfo: sessioninfo:
r version 3.2.3 (2015-12-10) platform: x86_64-pc-linux-gnu (64-bit) running under: ubuntu 16.04.2 lts locale: [1] lc_ctype=en_in lc_numeric=c lc_time=en_in [4] lc_collate=en_in lc_monetary=en_in lc_messages=en_in [7] lc_paper=en_in lc_name=c lc_address=c [10] lc_telephone=c lc_measurement=en_in lc_identification=c attached base packages: [1] stats graphics grdevices utils datasets methods base
i had same issue. previous poster noted (zwartemond), bug in igraph. owner of github repo fixed issue take while package updated on cran, you'll have wait time(around 2 weeks?).
to install igraph package directly source use devtools:
install.packages("devtools") library(devtools) install_github("igraph/rigraph")
this worked me.
Comments
Post a Comment