You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument direction added to specify if outbound, inbound or all edges should be considered. This replaces the argument mode from igraph::distances(). The default is "out", while before it was "all". For undirected networks this argument is ignored.
Edge measure function gained an argument degrees which can be set to TRUE to return angles in degrees instead of radians.
By default st_network_paths() now encodes nodes by their name, whenever a name attribute is present in the nodes table. This can be disabled by setting use_names = FALSE. Refs #154.
Functions sf::st_precision() and sf::st_set_precision() now have a method for sfnetwork objects, such that coordinate precision can be queried and set. Refs #209.
Functions sf::st_intersection() and sf::st_difference() now have a method for sfnetwork objects, such that networks can be spatially clipped. The method for sf::st_crop() now uses the same workflow. These functions do not work yet on edges of undirected networks. Refs #133.
Function sf::st_drop_geometry() is now a generic and therefore got an sfnetwork method.
Several other sf functions got an sfnetwork method, merely to be consistent in the type of functions we provide a method for. Only those functions that mutate the geometry column of an sf object in such a way that would break the valid spatial network structure are not supported.
Methods for sf::st_coordinates(), sf::st_bbox() and sf::st_crs() gained an active argument such that this information can be extracted from any network element without first activating it. Refs #215.
Bug fixes
Rd files do not contain code anymore that is incompatible with HTML5. Refs #221.
Error messages when edge measure or query functions are applied to a network with active nodes, or when node measure or query functions are applied to a network with active edges, are now more informative. Refs #216.
Calculating straight-line distances of edges is now more performant. Refs #180.
Edge measure function edge_circuity() does not return units objects anymore, since circuity is unitless.
Community
Vignettes updated to showcase new features.
Code of conduct updated according to newer template.
Contributing guidelines extended with templates for commit messages.
Master branch renamed to main, and protected from directed pushes.