Can you be running a block of code remotely using rsubmit; endrsubmit; and within it submit some code that runs on your local machine?