I need my script to wait until another process (which is not a child process of my R session) finishes. How can I do this in R?
The only thing I found is wait
function in bfork package, but this package was removed from CRAN.
Then I found package processx
, which has function poll
, but this only seems to be working on processes spawned by the R session.
PS: I am working on Windows, but OS-independent solution is highly preferable.