-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Is your feature request related to a problem? Please describe.
Tidygraph has a set of play_*
functions to create graphs from scratch according to some defined rules/algorithms. For example play_node_degree
will create a graph based on a given set of node degrees. See the reference.
Describe the solution you'd like
I am thinking of a function play_osm
that allows users to create a graph based on a street network from OpenStreetMap. Inputs to this function will be forwarded directly to the osmdata loading function, so it could be a bounding box or a placename. No cleaning needs to be done (in the end, the function is just meant to "play" with an example). I suggest to not use osmdata as a dependency of the package, but just include an if(!requireNamespace)
line at the beginning of the function.