Optimal Channel Networks
Overview
Generate and analyze Optimal Channel Networks (OCNs): oriented spanning trees reproducing all scaling features characteristic of real, natural river networks. As such, they can be used in a variety of numerical experiments in the fields of hydrology, ecology and epidemiology. See Carraro et al. (2020) doi:10.1002/ece3.6479 for a presentation of the package; Rinaldo et al. (2014) doi:10.1073/pnas.1322700111 for a theoretical overview on the OCN concept; Furrer and Sain (2010) doi:10.18637/jss.v036.i10 for the construct used.
Minor changes
draw_thematic_OCN: functioning of argumentriverColorchanged.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 30includes a package overview page
- Examples that run
- 95%20 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 79%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/lucarraro/ocnet on 2026-10-18.
GitHub Pages site last deployed 2025-09-12 · The repository has a site deploy workflow
pkgdown site last built 2025-09-12
Dependencies
Installing OCNet adds 113 packages (72 with compiled code, 128 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.3Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.2.22024-04-16 · diff ↗
- 1.2.12023-11-23 · diff ↗
- unarchivedReturned to CRAN2023-10-13
- 1.2.02023-10-13 · diff ↗
- archivedRemoved from CRAN2023-09-16requires archived package 'adespatial'
- 1.1.0
- 1.0.12023-04-25 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.02023-03-27 · diff ↗
- 0.7.12023-03-07 · diff ↗
- 0.7.02023-02-23 · diff ↗
- 0.6.0
Show 12 earlier eventsHide 12 earlier events
Package metadata
- First published
- 2019-12-18
- Total releases
- 18 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 1.1 MB / 8 files
- Download size
- 1.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("OCNet")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1002/ece3.6479.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.