subprocess icon indicating copy to clipboard operation
subprocess copied to clipboard

Subprocess is exited after receiving a nonexisting command

Open lhgergo opened this issue 6 years ago • 1 comments

Hi! I would like to use subprocess library in a situation, where in some cases the spawned R process would get nonexisting commands, or variables, that are not yet present in the global environment of the subprocess. When I tried this, it made the subprocess exit, instead of returning an error message. Is there any way to keep the subprocess alive, and return the errors?

Thanks!

Gergő

lhgergo avatar Oct 11 '19 14:10 lhgergo

Hi, I think you'll have to explain this problem a little more, maybe provide a short code snippet that reproduces the situation you described? In either case, I recommend looking at the https://cran.r-project.org/web/packages/processx/index.html package. I stopped actively developing subprocess a while ago and processx is still actively maintained.

lbartnik avatar Oct 15 '19 20:10 lbartnik