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

kuenm_ceval does not generate output files for windows #49

Open
Laurapalv opened this issue Nov 25, 2022 · 4 comments
Open

kuenm_ceval does not generate output files for windows #49

Laurapalv opened this issue Nov 25, 2022 · 4 comments

Comments

@Laurapalv
Copy link

I am having a trouble with the kuenm_ceval function. The script works correctly if I run it on Mac OS, but if I run it on Windows the progress stops at 0.34%. I don't know if it is a Windows compatibility problem with the Maxent executable. I would appreciate any help with this issue.

Here is the code I am using:

`## argumentos

setwd("D:/kuenm/P_goudotiana")
occ_joint <- "Pgoudotiana_joint.csv"
occ_tra <- "Pgoudotiana_train.csv"
batch_cal <- "Candidate_models"
out_dir <- "Candidate_Models"
occ_test <- "Pgoudotiana_test.csv"
out_eval <- "Calibration_results"
threshold <- 5
rand_percent <- 50
iterations <- 500
kept <- TRUE
selection <- "OR_AICc"
paral_proc <- FALSE
maxent_path <- "D:/kuenm/P_goudotiana"

función

cal_eval <- kuenm_ceval(path = out_dir, occ.joint = occ_joint, occ.tra = occ_tra, occ.test = occ_test, batch = batch_cal,
out.eval = out_eval, threshold = threshold, rand.percent = rand_percent, iterations = iterations,
kept = kept, selection = selection, parallel.proc = paral_proc)`
Thanks,

Laura

@facbio2000
Copy link

I have a similiar issue.
I have checked my Candidate_models folder and each subfolder has 9 files, so that the kuenm_cal argument is OK, and my maxent.jar run OK.
However, my progress bar doesn't finished, the Calibration_results folder is not created, and the subfolder of Candidate_models are not removed, although argument kept = FALSE.
I tried with the 1.1.3 version, 1.1.9 version, I have updated all packages in R, I have Rtools. I don't know what is the issues.
Probably one dependence that I need to install? but dplyr and future is OK.
When I have stopped kuenm_ceval, I get...

Error in .checkLevels(levels(x)[[1]], value) :
new raster attributes (factor values) should be in a data.frame (inside a list)

I don't know if this can help.

Regards

Francisco.

@facbio2000
Copy link

Also, I get this error with the test files of the package :(

@SeabiscuitTT
Copy link

Also, I get this error with the test files of the package :(
Me too. Have you solved this problem yet? I also encountered this problem. I checked all the file results I generated and tried to solve the problem multiple times according to #7 . I don't know where my problem is causing it to remain unresponsive.

@facbio2000
Copy link

Also, I get this error with the test files of the package :(
Me too. Have you solved this problem yet? I also encountered this problem. I checked all the file results I generated and tried to solve the problem multiple times according to #7 . I don't know where my problem is causing it to remain unresponsive.

Hi!! I solved it reinstalling Rtools. Can you try it? Regards

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

3 participants