CRAN Package Check Results for Package ENMTools

Last updated on 2024-06-06 05:57:46 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.2 51.09 682.66 733.75 OK
r-devel-linux-x86_64-debian-gcc 1.1.2 45.09 470.87 515.96 OK
r-devel-linux-x86_64-fedora-clang 1.1.2 883.24 OK
r-devel-linux-x86_64-fedora-gcc 1.1.2 859.05 OK
r-devel-windows-x86_64 1.1.2 46.00 402.00 448.00 OK
r-patched-linux-x86_64 1.1.2 51.46 639.10 690.56 OK
r-release-linux-x86_64 1.1.2 41.81 630.61 672.42 OK
r-release-macos-arm64 1.1.2 182.00 ERROR
r-release-macos-x86_64 1.1.2 312.00 OK
r-release-windows-x86_64 1.1.2 44.00 397.00 441.00 ERROR
r-oldrel-macos-arm64 1.1.2 162.00 OK
r-oldrel-macos-x86_64 1.1.2 291.00 OK
r-oldrel-windows-x86_64 1.1.2 61.00 552.00 613.00 OK

Check Details

Version: 1.1.2
Check: examples
Result: ERROR Running examples in ‘ENMTools-Ex.R’ failed The error most likely occurred in: > ### Name: enmtools.maxent > ### Title: Takes an emtools.species object with presence and background > ### points, and builds a maxent model > ### Aliases: enmtools.maxent > > ### ** Examples > > if(check.extras("enmtools.maxent")) { + ## maxent is not working on some platforms so use try() + try(enmtools.maxent(iberolacerta.clade$species$monticola, env = euro.worldclim)) + } *** caught illegal operation *** address 0x17feb2f78, cause 'illegal trap' Traceback: 1: rJava::.jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, "-s", pfn, args)) 2: .local(x, p, ...) 3: maxent(x, p, ...) 4: maxent(x, p, ...) 5: .local(x, p, ...) 6: dismo::maxent(raster::stack(env), p = analysis.df[analysis.df$presence == 1, 1:2], a = analysis.df[analysis.df$presence == 0, 1:2], ...) 7: dismo::maxent(raster::stack(env), p = analysis.df[analysis.df$presence == 1, 1:2], a = analysis.df[analysis.df$presence == 0, 1:2], ...) 8: withVisible(...elt(i)) 9: capture.output(this.mx <- dismo::maxent(raster::stack(env), p = analysis.df[analysis.df$presence == 1, 1:2], a = analysis.df[analysis.df$presence == 0, 1:2], ...)) 10: enmtools.maxent(iberolacerta.clade$species$monticola, env = euro.worldclim) 11: doTryCatch(return(expr), name, parentenv, handler) 12: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13: tryCatchList(expr, classes, parentenv, handlers) 14: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 15: try(enmtools.maxent(iberolacerta.clade$species$monticola, env = euro.worldclim)) An irrecoverable exception occurred. R is aborting now ... Flavor: r-release-macos-arm64

Version: 1.1.2
Check: for code/documentation mismatches
Result: WARN 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 Flavor: r-release-windows-x86_64

Version: 1.1.2
Check: examples
Result: 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 Flavor: r-release-windows-x86_64

Version: 1.1.2
Check: tests
Result: 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 ── <std::bad_alloc/C++Error/error/condition> 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 = `<SpatRstr[,162,1]>`) 4. └─terra (local) `[[<-`(`*tmp*`, i, value = `<SpatRstr[,162,1]>`) 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 Flavor: r-release-windows-x86_64