I\'m building an R script that needs to call some terminal process using the rstudioapi library.
My problem is that to avoid errors I need my code to wait for