CRiSp (City River Spaces) provides tools to automate the morphological delineation of riverside urban areas.
You can install the development version of CRiSp from GitHub with:
# install.packages("devtools")
devtools::install_github("CityRiverSpaces/CRiSp")
This is a basic example which shows you how to solve a common problem:
library(CRiSp)
## basic example code