Skip to content

OCNet

1.2.3Package record

Optimal Channel Networks

2packages depend
7.7Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.3

Minor changes

  • draw_thematic_OCN: functioning of argument riverColor changed.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.9 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.2.3
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.2.3Citation fileYes · cites a publicationWebsiteYes · pkgdown
Description cites a JSS article
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

7.7K
CRAN downloads in the past year
Rank #5,604 · ~21/day · ~638/mo
Daily download trend is not available in this view yet.
51730 days
1.5K90 days
7.7K1 year
Compare downloads with other packages →
Also on406 r2u2 autocran150 c2d4u

Repository

10Stars
4Forks
1Open issues
0Open PRs
1Releases
339Commits
4Commit identities
339 commits · Last activity 2025-09-12 · 0% stars, 30d
Responsiveness
How these are sampled
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

2024-12-11 · 72026-07-07 · 10
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsTravis CI (config file)
Docs source (3)
pkgdown

GitHub Pages site last deployed 2025-09-12 · The repository has a site deploy workflow

pkgdown site last built 2025-09-12

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.6
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.1.1 (2019)
Contributor
Contributor
Contributor
Releases (18)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.3Latest
    record
    2025-09-12 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.2
    record
    2024-04-16 · diff ↗
  • 1.2.1
    record
    2023-11-23 · diff ↗
  • unarchivedReturned to CRAN
    2023-10-13
  • 1.2.0
    record
    2023-10-13 · diff ↗
  • archivedRemoved from CRAN
    2023-09-16
    requires archived package 'adespatial'
  • 1.1.0
    record
    2023-07-11 · diff ↗ ·
    added 1 export
    OCN_to_AEM
  • 1.0.1
    record
    2023-04-25 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    record
    2023-03-27 · diff ↗
  • 0.7.1
    record
    2023-03-07 · diff ↗
  • 0.7.0
    record
    2023-02-23 · diff ↗
  • 0.6.0
    record
    2023-02-02 · diff ↗ ·
    added 1 export
    create_general_contour_OCN
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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for OCNet version 1.2.3 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy