elfgen
Ecological Limit Function Model Generation and Analysis Toolkit
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
479
Last 30 days
8014th
1K
Last 90 days
2.5K
Last year
Trend: +58.6% (30d vs prior 30d)
16
Last 30 days
56
Last 90 days
176
Last year
Trend: +6.7% (30d vs prior 30d)
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
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
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
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
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