Identify continuous lines in a network using an approach based on the Continuity in Steet Network (COINS) method1.
You can install the development version of rcoins like so:
# install.packages("devtools")
devtools::install_github("CityRiverSpaces/rcoins")
This is a basic example which shows you how to solve a common problem:
library(rcoins)
## basic example code