Running examples in ‘phyloclim-Ex.R’ failed
The error most likely occurred in:

> ### Name: hypothesis.testing
> ### Title: Niche Equivalency and Background Similarity Test
> ### Aliases: niche.equivalency.test niche.identity.test identity.test
> ###   bg.similarity.test print.ntest plot.ntest
> 
> ### ** Examples
> 
> # path to MAXENT
> # --------------
> maxent.exe <- paste(system.file(package="dismo"), 
+ "/java/maxent.jar", sep = "")
> 
> # a data frame of coordinates where two species 
> # have been detected ('presence points') and
> # a raster stack of environmental covariables
> # --------------------------------------
> species <- c("enneaphylla", "laciniata")
> data(sites)
> samples <- sites[grep(paste(species, collapse = "|"), sites$spec), ]
> data.path <- system.file("extdata", package = "phyloclim")
> preds <- list.files(path = data.path, pattern = "[.]asc")
> preds <- paste(data.path, preds, sep = "/")
> preds <- stack(lapply(X = preds, FUN = raster))
> 
> # testing against 9 permutations of the data
> # -------------------------------------------
> reps <- 9
> 
> # run hypothesis tests
> # --------------------
> if (file.exists(maxent.exe)){
+   net <- niche.equivalency.test(samples, preds, reps, maxent.exe)
+   net; plot(net)
+   bst <- bg.similarity.test(samples, preds, reps, app = maxent.exe)
+   bst; plot(bst)
+ } else {
+   message("get a copy of MAXENT (see Details)")
+ }
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00000001281aaf78, pid=48785, tid=75527
#
# JRE version: OpenJDK Runtime Environment Temurin-11.0.22+7 (11.0.22+7) (build 11.0.22+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.22+7 (11.0.22+7, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# C  [libawt.dylib+0x2ef78]  drawAAPgram+0x248
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Volumes/Builds/packages/big-sur-arm64/results/4.4/phyloclim.Rcheck/hs_err_pid48785.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Warning in file(fname, "r") :
  cannot open file 'R.phyloclim.temp/out/enneaphylla_proj.asc': No such file or directory
Error in file(fname, "r") : cannot open the connection
Calls: niche.equivalency.test -> read.asciigrid -> file
Execution halted