Connecting to R on a server from RStudio Desktop installed locally

Hello,
Is it possible to run RStudio Desktop (open source) locally for coding purpose but offload the execution of the code to another server running the same version of R?

2 Likes

One option is to use the Terminal in RStudio desktop to SSH to your remote server. Once logged into your remote server, you can start R. Then you can use the keyboard shortcut Ctrl-Alt-Enter to send lines of code from your script on your local computer to be executed in the R session running in the Terminal (as opposed to Ctrl-Enter, which will execute the code in the local R console).

The main downside of this approach is that you lose a lot of the RStudio features, such as the Environment pane and the Plots pane, though there are various workarounds for making plotting more convenient.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.