Sometimes it can be convenient to run RStudio remotely from an iPad or another machine with little RAM or disk space. This can be done quite easily using the free RStudio Server on OSX via docker. To do this:
$ open http://192.168.99.100:8787
Now there is is only a small last step needed. You need to expose the server port from the host on the local network using the OSX firewall. In the somewhat explicit language of the “new” OSX firewall this can be done using:
$ echo "rdr pass inet proto tcp from any to any port 8787 -> 127.0.0.1 port 8787" | sudo pfctl -ef -
At this point you should be able to connect remotely from your iPad to
and continue your R session where you left it before eg on your main machine.
BTW: If your network can not be trusted then you should probably change the default login credentials as described in the image docs.