To cite 'rivnet' in publications use:

Carraro L (2023). “Technical note: Seamless extraction and analysis of river networks in R.” Hydrology and Earth System Sciences. doi:10.5194/hess-27-3733-2023.

Corresponding BibTeX entry:

  @Article{,
    title = {Technical note: Seamless extraction and analysis of river
      networks in R},
    author = {Luca Carraro},
    year = {2023},
    journal = {Hydrology and Earth System Sciences},
    doi = {10.5194/hess-27-3733-2023},
  }