I am building a large species distribution model using the package "dismo" in the latest version of r. When I go to process the basic model using the code:
me <- maxent(x=train, p=p)
I get the following error:
> Error in .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout,
> : java.lang.OutOfMemoryError: unable to create new native thread
There is some discussion in stackoverflow and the internet about this error but none seem to address how to resolve the issue in the r code. Any input on this issue would be appreciated.