hzambran / hydroPSO

Model-Independent Particle Swarm Optimisation for Environmental Models
https://cran.r-project.org/package=hydroPSO
GNU General Public License v2.0
36 stars 18 forks source link

connection error when trying example (hydroPSO-MF2005) #14

Open jia-11 opened 5 years ago

jia-11 commented 5 years ago

I have tried the example of hydroPSO-MF2005 but I always got an error message as below. The version of R I used is 3.4.4. I have tried on both Win 7 and Win 10 but same error remains. Can anyone suggest what I should do to find out the issue? Thanks in advance for help.

Error in file(con, "r") : cannot open the connection In addition: There were 28 warnings (use warnings() to see them)

There are additional warning messages as below.

1: running command '"run_me.bat"' had status 1 2: In readLines(fname) : line 22 appears to contain an embedded nul 3: In readLines(fname) : line 58 appears to contain an embedded nul 4: In readLines(fname) : line 90 appears to contain an embedded nul 5: In readLines(fname) : line 124 appears to contain an embedded nul 6: In readLines(fname) : line 22 appears to contain an embedded nul 7: In readLines(fname) : line 58 appears to contain an embedded nul 8: In readLines(fname) : line 90 appears to contain an embedded nul 9: In readLines(fname) : line 124 appears to contain an embedded nul 10: running command '"run_me.bat"' had status 1 11: In readLines(fname) : line 22 appears to contain an embedded nul 12: In readLines(fname) : line 58 appears to contain an embedded nul 13: In readLines(fname) : line 90 appears to contain an embedded nul 14: In readLines(fname) : line 124 appears to contain an embedded nul 15: In readLines(fname) : line 22 appears to contain an embedded nul 16: In readLines(fname) : line 58 appears to contain an embedded nul 17: In readLines(fname) : line 90 appears to contain an embedded nul 18: In readLines(fname) : line 124 appears to contain an embedded nul 19: running command '"run_me.bat"' had status 1 20: In readLines(fname) : line 22 appears to contain an embedded nul 21: In readLines(fname) : line 58 appears to contain an embedded nul 22: In readLines(fname) : line 90 appears to contain an embedded nul 23: In readLines(fname) : line 124 appears to contain an embedded nul 24: In readLines(fname) : line 22 appears to contain an embedded nul 25: In readLines(fname) : line 58 appears to contain an embedded nul 26: In readLines(fname) : line 90 appears to contain an embedded nul 27: In readLines(fname) : line 124 appears to contain an embedded nul 28: In file(con, "r") : cannot open file 'pre_param.txt': Permission denied There were 14 warnings (use warnings() to see them)

warnings() 警告信息: 1: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 23 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/LocalBestPerIter.txt) 2: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 22 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/PbestPerIter.txt) 3: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 21 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/BestParamPerIter.txt) 4: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 20 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/ConvergenceMeasures.txt) 5: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 19 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Velocities.txt) 6: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 18 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Particles.txt) 7: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 17 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Model_out.txt) 8: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 9 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/LocalBestPerIter.txt) 9: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 8 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/PbestPerIter.txt) 10: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 7 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/BestParamPerIter.txt) 11: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 6 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/ConvergenceMeasures.txt) 12: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 5 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Velocities.txt) 13: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 4 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Particles.txt) 14: In tryCatchOne(expr, names, parentenv, handlers[[1L]]) : closing unused connection 3 (D:/mynutstore/Reading/hydropso/MF2005/PSO.70p3000i.rand_TVc1_TVlambda.out/Model_out.txt)