Closed luukvdmeer closed 3 years ago
Functions that fail because of this bug (as far as I know of):
tidygraph::bind_nodes
tidygraph::bind_edges
tbl_graph
method for dplyr::full_join
tbl_graph
method for dplyr::right_join
This is not really an sfnetworks issue. It is now documented in #29
Describe the bug Before, the bind functionalities of
tidygraph
(i.e.bind_graphs
,bind_nodes
andbind_edges
) did not work forsfnetwork
objects becausebind_rows
ofdplyr
did not work forsf
objects. With the development versions ofdplyr
(1.0.0.9000),vctrs
(0.3.1.9000) andsf
(0.9-4), this problem is solved. That makes thatbind_graphs
now works good forsfnetwork
objects:However,
bind_nodes
still fails, because of a new, weird error:The error is caused by
igraph::add_vertices
, which is used internally inbind_nodes
. It is a mystery for me why that function would callst_bbox
, but I did not look into it yet. What I did find is that the same error occurs when usingas_tibble(nsf)
instead ofnsf
, so it is really the geometry list column that causes the problem, not just the sf class.For edges (i.e. using
tidygraph::bind_edges
) RStudio even crashes completely (i.e. aborted because of fatal error). Here, the error is caused byigraph::add_edges
.The
add_vertices
andadd_edges
functions are also used inside right joins and full joins, which also fail.R Session Info