Skip to content

hydraulics

Basic Pipe and Open Channel Hydraulics

v0.7.2 · Oct 9, 2025 · GPL (>= 3)

Description

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.

Downloads

CRAN

406

Last 30 days

10662nd

984

Last 90 days

5.5K

Last year

Trend: +64.4% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

23

Last 90 days

109

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

12

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING r-devel-linux-x86_64-debian-gcc

Rd \usage sections

Fatal error: cannot create 'R_TempDir'
The \usage entries for S3 methods should use the \method markup and not
their full name.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,597

Files

53

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,008 (65.4%)Docs 1,134 (24.7%)Vignettes 455 (9.9%)

API

Exported functions

28

Internal functions

23

Recent export changes

v0.6.0+2 direct_step, sequent_depth

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

88.9%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6.0

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

15

First release

2020-05-18

Latest release

2025-10-10

Avg cadence

79 days

Cold removal rate

Dep drift

6

LOC over versions

v0.1.0: 716 LOCv0.2.0: 1,672 LOCv0.2.1: 1,784 LOCv0.2.2: 2,231 LOCv0.2.3: 2,285 LOCv0.2.4: 2,290 LOCv0.3.0: 2,768 LOCv0.4.0: 3,298 LOCv0.4.1: 3,408 LOCv0.5.0: 3,904 LOCv0.6.0: 4,432 LOCv0.6.1: 4,456 LOCv0.7.0: 4,579 LOCv0.7.1: 4,590 LOCv0.7.2: 4,597 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies ggplot2 gtools pracma purrr reshape2 tibble units hydraulics

Version History

16 tracked
new 0.7.2 Mar 10, 2026
updated 0.7.2 ← 0.7.1 diff Oct 9, 2025
updated 0.7.1 ← 0.7.0 diff Nov 17, 2024
updated 0.7.0 ← 0.6.1 diff Mar 5, 2024
updated 0.6.1 ← 0.6.0 diff Dec 5, 2022
updated 0.6.0 ← 0.5.0 diff Nov 8, 2022
updated 0.5.0 ← 0.4.1 diff Oct 10, 2022
updated 0.4.1 ← 0.4.0 diff Mar 6, 2022
updated 0.4.0 ← 0.3.0 diff Jan 3, 2022
updated 0.3.0 ← 0.2.4 diff May 18, 2021
updated 0.2.4 ← 0.2.3 diff Feb 24, 2021
updated 0.2.3 ← 0.2.2 diff Dec 12, 2020
updated 0.2.2 ← 0.2.1 diff Aug 25, 2020
updated 0.2.1 ← 0.2.0 diff Aug 1, 2020
updated 0.2.0 ← 0.1.0 diff Jul 1, 2020