Skip to content

biogas

Process Biogas Data and Predict Biogas Production

v1.64.0 · Apr 5, 2025 · GPL-2

Description

Functions for calculating biochemical methane potential (BMP) from laboratory measurements and other types of data processing and prediction useful for biogas research. Raw laboratory measurements for diverse methods (volumetric, manometric, gravimetric, gas density) can be processed to calculate BMP. Theoretical maximum BMP or methane or biogas yield can be predicted from various measures of substrate composition. Molar mass and calculated oxygen demand (COD') can be determined from a chemical formula. Measured gas volume can be corrected for water vapor and to standard (or user-defined) temperature and pressure. Gas quantity can be converted between volume, mass, and moles. A function for planning BMP experiments can consider multiple constraints in suggesting substrate or inoculum quantities, and check for problems. Inoculum and substrate mass can be determined for planning BMP experiments. Finally, a set of first-order models can be fit to measured methane production rate or cumulative yield in order to extract estimates of ultimate yield and kinetic constants. See Hafner et al. (2018) <doi:10.1016/j.softx.2018.06.005> for details. OBA is a web application that provides access to some of the package functionality: <https://biotransformers.shinyapps.io/oba1/>. The Standard BMP Methods website documents the calculations in detail: <https://www.dbfz.de/en/BMP>.

Downloads

CRAN

385

Last 30 days

11278th

959

Last 90 days

4.3K

Last year

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

r2u CRAN

1

Last 30 days

27

Last 90 days

155

Last year

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

autoCRAN

5

Last 7 days

31

Last 30 days

1

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
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

contents of ‘data’ directory

Output for data("massw", package = "biogas"):
  Fatal error: cannot create 'R_TempDir'
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

11,217

Files

124

Compiled share

0%

Has compiled src

No

Language breakdown

R 5,132 (45.8%)Tests 4 (0%)Docs 4,241 (37.8%)Vignettes 1,840 (16.4%)

API

Exported functions

16

Internal functions

25

Testing & CI

Has tests

Yes

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\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

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

19

First release

2015-03-05

Latest release

2025-04-05

Avg cadence

85 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0: 2,320 LOCv1.0.1: 2,290 LOCv1.1.0: 3,481 LOCv1.2.0: 4,281 LOCv1.2.1: 4,891 LOCv1.3.0: 4,642 LOCv1.4.0: 5,010 LOCv1.5.0: 5,534 LOCv1.6.0: 5,715 LOCv1.7.0: 5,866 LOCv1.8.0: 14,159 LOCv1.8.1: 5,889 LOCv1.9.0: 5,940 LOCv1.10.0: 6,194 LOCv1.10.2: 6,216 LOCv1.10.3: 6,105 LOCv1.23.2: 10,021 LOCv1.61: 11,213 LOCv1.64.0: 11,217 LOC

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

Version History

20 tracked
new 1.64.0 Mar 10, 2026
updated 1.64.0 ← 1.61 diff Apr 4, 2025
updated 1.61 ← 1.23.2 diff Dec 4, 2024
updated 1.23.2 ← 1.10.3 diff Jan 7, 2020
updated 1.10.3 ← 1.10.2 diff May 15, 2018
updated 1.10.2 ← 1.10.0 diff May 1, 2018
updated 1.10.0 ← 1.9.0 diff Feb 4, 2018
updated 1.9.0 ← 1.8.1 diff Jan 2, 2018
updated 1.8.1 ← 1.8.0 diff Aug 11, 2017
updated 1.8.0 ← 1.7.0 diff Aug 8, 2017
updated 1.7.0 ← 1.6.0 diff Feb 24, 2017
updated 1.6.0 ← 1.5.0 diff Dec 15, 2016
updated 1.5.0 ← 1.4.0 diff Nov 16, 2016
updated 1.4.0 ← 1.3.0 diff May 23, 2016
updated 1.3.0 ← 1.2.1 diff Apr 14, 2016