Hi All,
I'm running Maxent from R and I am trying to get the ENMeval package to work to evaluate maxent models.
First I run this model (occurrences of the species in south america),
eval2.par_lut_sa <- ENMevaluate(occs, envs_sa_angel, bg, method='randomkfold', kfolds = 10, RMvalues=c(0.5,1,2), fc=c('L','LQ','LQP', 'LQPH'), parallel=TRUE)
where
> class(envs_sa_angel)
[1] "RasterStack"
attr(,"package")
[1] "raster"
> names(envs_sa_angel)
[1] "bio1" "bio4" "bio5" "bio6" "bio12" "bio15" "bio16" "bio17"
And I obtained the results I needed.
Then I tried to run the model with occurrences of the species in europe
eval2.par_lut_eu <- ENMevaluate(occs_eu, envs_eu_angel, bg_lut_eu, method='randomkfold', kfolds = 10, RMvalues=c(0.5,1,2), fc=c('L','LQ','LQP', 'LQPH'), parallel=TRUE)
where
> class(envs_eu_angel)
[1] "RasterStack"
attr(,"package")
[1] "raster"
> names(envs_eu_angel)
[1] "bio1" "bio4" "bio5" "bio6" "bio12" "bio15" "bio16" "bio17"
But it gives me an error..
Doing random k-fold evaluation groups...
Of 16 total cores using 16
Running in parallel...
Error in file(fn, "rb") : cannot open the connection
In addition: Warning message:
In file(fn, "rb") : cannot open file 'C:\Users\stirling\AppData\Local\Temp\RtmpKyikai\raster\r_tmp_2017-04-25_170521_19140_55426.gri': No such file or directory
Any suggestions?
Thank you in advance
Cheers
Daniele