{networksf} provides data structures and routines facilitating spatial network analysis using {statnet}’s {network} and {sf}.
if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")
remotes::install_github("knapply/networksf")library(networksf)