r - Cannot write igraph object to file (forbidden control character error) -
when trying write igraph
object file, receive following error:
error in .call("r_igraph_write_graph_graphml", graph, file, as.logical(prefixattr), : @ foreign-graphml.c:1236 : forbidden control character 0x08 found in igraph_i_xml_escape, invalid value
i using basic syntax writing igraph
objects file in graphml
format:
write.graph(mygraphobject,"graph_object_to_file.graphml",format="graphml")
i have tried converting character vector attributes of graph utf-8 using iconv
function, has not worked far.
any ideas appreciated.
find character attribute contains character character code 0x08
, , fix it. character stands backspace in ascii table, i'm pretty sure not meant there. also, character disallowed in xml 1.0 anyway, won't able save xml 1.0 file.
converting utf-8 won't work because utf-8 equivalent of 0x08
0x08
.
Comments
Post a Comment