Skip to content

elfgen

Ecological Limit Function Model Generation and Analysis Toolkit

v2.3.5 · May 22, 2026 · 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

CRAN

479

Last 30 days

8014th

1K

Last 90 days

2.5K

Last year

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

r2u CRAN

16

Last 30 days

56

Last 90 days

176

Last year

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

autoCRAN

0

Last 7 days

12

Last 30 days

0

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

package dependencies

Package required but not available: ‘nhdplusTools’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 17, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 15, 2026
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [382s]
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 1 | SKIP 0 | PASS 17 ]
  
  ══
...[truncated]...
t.frame())
   11.     └─nhdplusTools (local) `<fn>`(...)
   12.       └─nhdplusTools:::get_oafeat(...)
   13.         └─nhdplusTools:::get_features_paging(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 17 ]
  Error:
  ! Test failures.
  Execution halted
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

8 tracked
updated 2.3.5 ← 2.3.4 diff May 23, 2026
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