Hello,
I am currently using irace to configure an algorithm on a pbs cluster, using the "--bachmode pbs" option.
It turns out, irace fails to retrieve the status of jobs on such clusters, and ends up waiting for them for much longer than needed.
The issue comes from the pbs.job.finished function, which simply calls qstat and returns its exit status.
This fails when the job is completed, but has not been archived yet.
I believe changing the function to something like this should fix the issue in most cases:
pbs.job.finished <- function(jobid){
qstat_out <- system (paste0("qstat ", jobid), ignore.stdout=FALSE,
ignore.stderr=TRUE, intern=TRUE, wait=TRUE)
return(grep(" C ", qstat_out))
}
I have however been unable to rebuild the package from source to test it.
For some reason, vignettes can be neither built nor ignored, and build fails with the following error:
Warning in file(con, "w") :
cannot open file '/home/user/R/x86_64-pc-linux-gnu-library/3.4/irace/doc/index.html': No such file or directory
Error in file(con, "w") : cannot open the connection
ERROR: installing vignettes failed
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/irace’
Warning message:
In install.packages(".", repos = NULL, type = "source") :
installation of package ‘.’ had non-zero exit status
I may be missing something, though, as I am not that familiar with R's environment.
Thanks!
Best regards.