Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble using biasfile #49

Open
thesnakeguy opened this issue Oct 28, 2024 · 1 comment
Open

Trouble using biasfile #49

thesnakeguy opened this issue Oct 28, 2024 · 1 comment

Comments

@thesnakeguy
Copy link

Hi,

I am really enjoying the maxent function in R. However, I ran unto a problem when I try to use a bias layer in the analysis of my data.

model_full <- maxent(predictors_cleaned, pres_train, removeDuplicates = TRUE, replicates = 10, args = "biasfile=dens.ras") Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\PDESCH~1\AppData\Local\Temp\RtmpMpcNg3/raster/maxent/24971072586/species.lambdas': No such file or directory

> class(dens.ras)
[1] "RasterLayer"
attr(,"package")
[1] "raster"

Any suggestion to resolve this issue is very welcome.

Cheers

@thesnakeguy
Copy link
Author

I still have not found the issue. Following code doesn't work either:

maxent(
x = predictors_cleaned,
p = pres_train,
args = c('biasfile=/path/samplingBiasLayer/Biasfile.tif')
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant