guillaume Le Ray
2013-Feb-13 09:59 UTC
[R] R CMD in batch mode/trycatch() keeps hold on resources
HI all, I am using R (version 2.13.1) in batch mode on a server and I use trycatch() to handle the exceptions. When the code run without any exceptions, everything goes fine, however as soon as trycatch handle an error, my code works fine but R keeps hold on the folder after quiting. Therefore when I try to delete the folder it cannot... do you have any idea of which function can be the origin of the problem? or how to kill the process? Regards, Guillaume Le Ray [[alternative HTML version deleted]]
guillaume Le Ray
2013-Feb-14 09:31 UTC
[R] R CMD in batch mode/trycatch() keeps hold on resources
Problem fixed. http://stackoverflow.com/questions/7103429/all-the-connections-are-in-use-execution-halted/7108799#7108799 It can happen when the error handling is not properlly done. trycatch enter in finally and get stuck. 2013/2/13 guillaume Le Ray <leray.guillaume@gmail.com>> HI all, > > I am using R (version 2.13.1) in batch mode on a server and I use > trycatch() to handle the exceptions. > > When the code run without any exceptions, everything goes fine, however > as soon as trycatch handle an error, my code works fine but R keeps hold > on the folder after quiting. > > Therefore when I try to delete the folder it cannot... > > do you have any idea of which function can be the origin of the problem? > or how to kill the process? > > Regards, > > Guillaume Le Ray >[[alternative HTML version deleted]]
Reasonably Related Threads
- problems with connections when applied in tryCatch
- strptime() keeps emitting warnings after establishing a handler with tryCatch()
- strptime() keeps emitting warnings after establishing a handler with tryCatch()
- suprising behaviour of tryCatch()
- tryCatch in on.exit()