Skip to content

elfgen

Ecological Limit Function Model Generation and Analysis Toolkit

v2.3.4 · Nov 28, 2025 · MIT + file LICENSE

Description

A toolset for generating Ecological Limit Function (ELF) models and evaluating potential species loss resulting from flow change, based on the 'elfgen' framework. ELFs describe the relation between aquatic species richness (fish or benthic macroinvertebrates) and stream size characteristics (streamflow or drainage area). Journal publications are available outlining framework methodology (Kleiner et al. (2020) <doi:10.1111/1752-1688.12876>) and application (Rapp et al. (2020) <doi:10.1111/1752-1688.12877>).

Downloads

295

Last 30 days

13818th

795

Last 90 days

1.7K

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 16, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 14, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [6s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(elfgen)
  > 
  > test_check("elfgen")
  Saving _problems/test-elfdata-43.R
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 17 ]
  
  
...[truncated]...
.data$itemType == "feature")`: ℹ In argument: `.data$itemType == "feature"`.
  Caused by error in `.data$itemType`:
  ! Column `itemType` not found in `.data`.
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 17 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies stringr quantreg ggplot2 testit scales sqldf curl sbtools nhdplusTools elfgen

Version History

new 2.3.4 Mar 10, 2026
updated 2.3.4 ← 2.3.3 diff Nov 27, 2025
updated 2.3.3 ← 2.3.0 diff Aug 22, 2022
updated 2.3.0 ← 2.2.8 diff May 20, 2022
updated 2.2.8 ← 2.2.7 diff Mar 28, 2022
updated 2.2.7 ← 2.2.3 diff Mar 23, 2022
new 2.2.3 Feb 7, 2022