Relative Content

Tag Archive for rtargets-r-package

How to properly kill a targets pipeline

I use targets via RStudio Web and usually start a pipeline via tar_make in an RStudio job. I use crew as parallel backend. Whenever I stop a pipeline I do this by killing the RStudio job. But this leaves some processes working in the background. When I then start the next time (often for debugging puposes) I always receive an error message that a background process still works on the pipeline and must be killed. Only at this point I get the PID of this process and can kill it via Linux kill command. Afterwards I can start a pipeline again.