* using log directory 'd:/Rcompile/CRANpkg/local/4.4/ENMTools.Rcheck' * using R version 4.4.0 (2024-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'ENMTools/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ENMTools' version '1.1.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'ENMTools' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 ... [10s] OK * checking whether the package can be loaded with stated dependencies ... [10s] OK * checking whether the package can be unloaded cleanly ... [11s] OK * checking whether the namespace can be loaded with stated dependencies ... [11s] OK * checking whether the namespace can be unloaded cleanly ... [11s] OK * checking loading without being on the library search path ... [10s] OK * checking whether startup messages can be suppressed ... [10s] 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 ... [34s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... WARNING Error: package or namespace load failed for 'ENMTools': .onLoad failed in loadNamespace() for 'broom', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.4/backports/libs/x64/backports.dll': LoadLibrary failure: Die Auslagerungsdatei ist zu klein, um diesen Vorgang durchzuführen. Call sequence: 6: stop(msg, call. = FALSE, domain = NA) 5: value[[3L]](cond) 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3: tryCatchList(expr, classes, parentenv, handlers) 2: tryCatch({ attr(package, "LibPath") <- which.lib.loc ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps, exclude, include.only) }, error = function(e) { P <- if (!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L]) else "" msg <- gettextf("package or namespace load failed for %s%s:\n %s", sQuote(package), P, conditionMessage(e)) Execution halted * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking R/sysdata.rda ... OK * checking examples ... [35s] ERROR Running examples in 'ENMTools-Ex.R' failed The error most likely occurred in: > ### Name: marginal.plots > ### Title: marginal.plots Plots the marginal response of a model to an > ### environmental variable with all other variables held at their mean in > ### env > ### Aliases: marginal.plots > ### Keywords: enm plot response sdm > > ### ** Examples > > cyreni.glm <- enmtools.glm(iberolacerta.clade$species$cyreni, + f = pres ~ bio1 + bio12, euro.worldclim) Error: std::bad_alloc Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [76s] ERROR Running 'testthat.R' [75s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ENMTools) Loading required package: dismo Loading required package: raster Loading required package: sp > > test_check("ENMTools") [ FAIL 1 | WARN 0 | SKIP 2 | PASS 101 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test_ENMTools.R:168:3', 'test_ENMTools.R:211:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_ENMTools.R:112:3'): enmtools.model objects work for core methods ── Error: std::bad_alloc Backtrace: ▆ 1. └─ENMTools::enmtools.bc(cyreni, euro.worldclim, test.prop = 0) at test_ENMTools.R:112:3 2. └─ENMTools::clamp.env(this.df, env) 3. ├─methods (local) `[[<-`(`*tmp*`, i, value = ``) 4. └─terra (local) `[[<-`(`*tmp*`, i, value = ``) 5. └─terra (local) .local(x, i, ..., value) 6. └─terra:::.rast_replace(x, i[k], value[[k]], "`[[<-`") 7. ├─x[[(i + 1):nlyr(x)]] 8. └─x[[(i + 1):nlyr(x)]] 9. └─terra (local) .local(x, i, j = j, ...) 10. ├─base::subset(x, i, NSE = FALSE) 11. └─terra::subset(x, i, NSE = FALSE) 12. └─terra (local) .local(x, ...) 13. └─x@ptr$subset(subset - 1, opt) [ FAIL 1 | WARN 0 | SKIP 2 | PASS 101 ] Error: Test failures Execution halted * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [13s] OK * DONE Status: 2 ERRORs, 1 WARNING