Skip to content

hydraulics

0.7.2Package record

Basic Pipe and Open Channel Hydraulics

0packages depend
4.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Functions for basic hydraulic calculations related to water flow in circular pipes both flowing full (under pressure), and partially full (gravity flow), and trapezoidal open channels. For pressure flow this includes friction loss calculations by solving the Darcy-Weisbach equation for head loss, flow or diameter, plotting a Moody diagram, matching a pump characteristic curve to a system curve, and solving for flows in a pipe network using the Hardy-Cross method. The Darcy-Weisbach friction factor is calculated using the Colebrook (or Colebrook-White equation), the basis of the Moody diagram, the original citation being Colebrook (1939) doi:10.1680/ijoti.1939.13150. For gravity flow, the Manning equation is used, again solving for missing parameters. The derivation of and solutions using the Darcy-Weisbach equation and the Manning equation are outlined in many fluid mechanics texts such as Finnemore and Maurer (2024, ISBN:978-1-264-78729-6). Some gradually- and rapidly-varied flow functions are included. For the Manning equation solutions, this package uses modifications of original code from the 'iemisc' package by Irucka Embry.

Changes in 0.7.2
  • Update moody.R to accommodate deprecation of ggplot aes_string

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.7.2
READMEYes · 440 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.7.2Citation fileNoWebsiteYes · pkgdown
Help pages
18
Examples that run
100%17 run in a plain check
Exported functions with examples
94%
Documented parameters
100%
Return-value docs
89%
Help pages citing references
0%

Downloads

4.3K
CRAN downloads in the past year
Rank #7,787 · ~12/day · ~355/mo
Daily download trend is not available in this view yet.
56630 days
1.2K90 days
4.3K1 year
Compare downloads with other packages →
Also on99 r2u5 autocran69 c2d4u

Repository

10Stars
6Forks
1Open issues
1Open PRs
0Releases
132Commits
4Commit identities
License file reads as GPL-3.0 · 132 commits · Last activity 2025-10-10
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
39
Median days to close, 50 most recently updated closed PRs
192
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/edm44/hydraulics on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

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

pkgdown site last built 2025-10-10

Coverage (1)
Coverage reporting
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing hydraulics adds 31 packages (17 with compiled code, 30 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

Depends (1)
R >= 3.6.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.0 (2020)
Author, Contributor · added in 0.2.0
iemisc code
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.7.2Latest
    record
    2025-10-10 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.7.1
    record
    2024-11-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.7.0
    record
    2024-03-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6.1
    record
    2022-12-06 · diff ↗
  • 0.6.0
    record
    2022-11-09 · diff ↗ ·
    added 2 exports
    direct_step, sequent_depth
  • 0.5.0
    record
    2022-10-11 · diff ↗ ·
    added 6 exports
    atmdens, atmos_table, atmpres, atmtemp, specwt, water_table
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.1
    record
    2022-03-07 · diff ↗ ·
    added 2 exports
    Ev, surf_tension
  • 0.4.0
    record
    2022-01-04 · diff ↗ ·
    added 2 exports
    hardycross, svp
  • 0.3.0
    record
    2021-05-19 · diff ↗ ·
    added 3 exports
    operpoint, pumpcurve, systemcurve
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.4
    record
    2021-02-25 · diff ↗
Show 6 earlier eventsHide 6 earlier events

Package metadata

First published
2020-05-18
Total releases
15 / 6 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.6.0
Download size
871 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("hydraulics")
Maurer, E., & Embry, I. (2025). hydraulics: Basic Pipe and Open Channel Hydraulics (Version 0.7.2) [Computer software]. https://doi.org/10.32614/CRAN.package.hydraulics

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 hydraulics version 0.7.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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