What is the best way to work from a Mac-laptop and, send an .Rda-file to an Ubuntu-desktop with the input-data, run the processing, and then later get a new .Rda with the results back to the Mac-laptop?
My R-workflow is mostly about tweaking plots and modifying text in reports (knitr), which I do with a relatively weak Mac-laptop. But a few steps in, I sometimes need to run RJAGS or similar heavy jobs that can take many hours (longer than laptop can stay connected). The input-.Rda can be hundreds of MB large. I also have powerful Ubuntu desktop in another location. It would be great if one could submit also the function to be run.
I thought OpenCpu could be a way, but it seems the laptop must stay connected. Rredis also might be a way forward, but it seems limited in data volume. I already have an SSH-connection between the computers, so perhaps it is best to have some sort of script to send data, send R-script, start R-script, wait, retrieve data. I have already installed RStudio Server on the Ubuntu, and that works well, requires constant connection to the Ubuntu. There are also several multi-computer systems, but as I understand they require computation also on the starting-machine.
I need to do this on an almost daily basis, which is why a robust automatic process would be good.