ENMeval
Automated Tuning and Evaluations of Ecological Niche Models
Description
Runs ecological niche models over all combinations of user-defined settings (i.e., tuning), performs cross validation to evaluate models, and returns data tables to aid in selection of optimal model settings that balance goodness-of-fit and model complexity. Also has functions to partition data spatially (or not) for cross validation, to plot multiple visualizations of results, to run null models to estimate significance and effect sizes of performance metrics, and to calculate range overlap between model predictions, among others. The package was originally built for Maxent models (Phillips et al. 2006, Phillips et al. 2017), but the current version allows possible extensions for any modeling algorithm. The extensive vignette, which guides users through most package functionality but unfortunately has a file size too big for CRAN, can be found here on the package's Github Pages website: <https://jamiemkass.github.io/ENMeval/articles/ENMeval-2.0-vignette.html>.
Downloads
5.1K
Last 30 days
1733rd
15.5K
Last 90 days
65.9K
Last year
Trend: -3.4% (30d vs prior 30d)
CRAN Check Status
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 | ERROR |
| 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 | ERROR |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
package dependencies
Package required but not available: ‘rangeModelMetadata’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual.
tests
Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> Sys.setenv("R_TESTS" = "")
> library(testthat)
> library(ENMeval)
This is ENMeval version 2.0.5.2.
For worked examples, please consult the vignette: <https://jamiemkass.github.io/ENMeval/articles/ENMeval-2.0-vignette.html>.
>
> testthat::test_check("ENMeval")
*** caught illegal operation ***
address 0x1064bef78, cause 'illegal trap'
Traceback:
1: rJava::.jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, "-s", pfn, args), rJava::.jarray(factors))
2: .local(x, p, ...)
3: (new("standardGeneric", .Data = function (x, p, ...) standardGeneric("MaxEnt"), generic = "MaxEnt", package = "predicts", group = list(), valueClass = character(0), signature = c("x", "p"), default = NULL, skeleton = (function (x, p, ...) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "MaxEnt"), domain = NA))(x, p, ...)))(x
...[truncated]...
sage(cnd), "\n") NULL})
27: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
28: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
29: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
30: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
31: testthat::test_check("ENMeval")
An irrecoverable exception occurred. R is aborting now ...
Check History
ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
package dependencies
Package required but not available: ‘rangeModelMetadata’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual.
tests
Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> Sys.setenv("R_TESTS" = "")
> library(testthat)
> library(ENMeval)
This is ENMeval version 2.0.5.2.
For worked examples, please consult the vig
...[truncated]...
ackage, parallel = parallel, shuffle = shuffle)
30: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
31: testthat::test_check("ENMeval")
An irrecoverable exception occurred. R is aborting now ...