lbartnik / subprocess

Other
49 stars 10 forks source link

Subprocess is exited after receiving a nonexisting command #67

Open lhgergo opened 5 years ago

lhgergo commented 5 years ago

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ő

lbartnik commented 5 years ago

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.