- using R Under development (unstable) (2026-11-09 r90865)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.2.0-4) 16.2.0
GNU Fortran (Debian 16.2.0-4) 16.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-11-10 17:10:17 UTC
- checking for file ‘maxentcpp/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘maxentcpp’ version ‘1.0.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Packages suggested but not available for checking: 'terra', 'raster'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘maxentcpp’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘g++-16 (Debian 16.2.0-4) 16.2.0’
- checking C++ specification ... INFO
specified C++17
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [6s/8s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in shell scripts ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking examples ... [0s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [7s/9s] ERROR
Running ‘testthat.R’ [7s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(maxentcpp)
>
> test_check("maxentcpp")
class : MaxEnt
species : TestSp
n presence : 4
n background : 3
Training statistics
AUC : 1.0000
Gain : 1.7212
Entropy : 1.9645
Variable contributions
Variable Contribution (%) Permutation importance (%)
env0 51.6 0.0
env1 48.4 0.0
Saving _problems/test-terra-bridge-112.R
[ FAIL 1 | WARN 0 | SKIP 40 | PASS 542 ]
══ Skipped tests (40) ══════════════════════════════════════════════════════════
• maxent_mini.jar not compiled; run `cd java && ./build.sh` (27):
'test-java-numerical.R:104:5', 'test-java-numerical.R:116:5',
'test-java-numerical.R:130:5', 'test-java-numerical.R:144:5',
'test-java-numerical.R:156:5', 'test-java-numerical.R:172:5',
'test-java-numerical.R:188:5', 'test-java-numerical.R:204:5',
'test-java-numerical.R:227:5', 'test-java-numerical.R:239:5',
'test-java-numerical.R:254:5', 'test-java-numerical.R:268:5',
'test-java-numerical.R:282:5', 'test-java-numerical.R:294:5',
'test-optimizer-trajectory.R:154:5', 'test-optimizer-trajectory.R:170:5',
'test-optimizer-trajectory.R:182:5', 'test-optimizer-trajectory.R:192:5',
'test-optimizer-trajectory.R:204:5', 'test-optimizer-trajectory.R:408:5',
'test-optimizer-trajectory.R:421:5', 'test-optimizer-trajectory.R:432:5',
'test-optimizer-trajectory.R:442:5', 'test-optimizer-trajectory.R:454:5',
'test-optimizer-trajectory.R:467:5', 'test-optimizer-trajectory.R:478:5',
'test-optimizer-trajectory.R:488:5'
• {terra} is not installed (13): 'test-featured-space-raster.R:72:5',
'test-featured-space-raster.R:87:5', 'test-featured-space-raster.R:101:5',
'test-featured-space-raster.R:120:5', 'test-featured-space-raster.R:144:5',
'test-featured-space-raster.R:171:5', 'test-featured-space-raster.R:184:5',
'test-featured-space-raster.R:202:5', 'test-quickstart.R:7:5',
'test-terra-bridge.R:4:5', 'test-terra-bridge.R:29:5',
'test-terra-bridge.R:63:5', 'test-terra-bridge.R:97:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-terra-bridge.R:111:5'): maxent_grid_from_terra rejects non-SpatRaster ──
Error in `maxent_grid_from_terra(matrix(1:4, 2, 2))`: Package 'terra' is required. Install it with install.packages('terra').
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-terra-bridge.R:111:5
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─maxentcpp::maxent_grid_from_terra(matrix(1:4, 2, 2))
[ FAIL 1 | WARN 0 | SKIP 40 | PASS 542 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [7s/10s] OK
- checking HTML version of manual ... [3s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR