Load a street network previously saved with dodgr_save_streetnet.
Source:R/save_load_streetnet.R
dodgr_load_streetnet.Rd
This always returns the full, non-contracted graph. The contracted graph can be generated by passing the result to dodgr_contract_graph.
See also
Other cache:
clear_dodgr_cache()
,
dodgr_cache_off()
,
dodgr_cache_on()
,
dodgr_save_streetnet()
Examples
net <- weight_streetnet (hampi)
f <- file.path (tempdir (), "streetnet.Rds")
dodgr_save_streetnet (net, f)
clear_dodgr_cache () # rm cached objects from tempdir
# at some later time, or in a new R session:
net <- dodgr_load_streetnet (f)