I'm currently using vim (actually neovim) as my IDE for writing and executing GNU R-code (using the Nvim-R-plugin, see also https://github.com/jalvesaq/Nvim-R, which serves as my REPL), which works great on my local machine. When having higher workloads or demands, I'm ssh-ing into a remote machine, installing my nvim plugins and running nvim as a "local" application on the server.
Recently I realized that Emacs has the ingenious TRAMP mode (Transparent Remote Access, Multiple Protocols, see also https://www.emacswiki.org/emacs/TrampMode), which allows to not only open files remotely, but also execute commands on a remote machine. From what I understand this means that I could use Emacs as a REPL (e.g. using ESS), writing code using my local Emacs-instance, but executing it on a remote machine where I have GNU R installed (see also https://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers).
I'd be interested to know if something similar exists for vim or neovim. I'm aware that I can edit files remotely using
vim scp://USER@SERVER:PORT//absolute/path/to/file
or
vim
:e scp://USER@SERVER:PORT//absolute/path/to/file
but from what I understand this actually creates a temporary copy of the file on my local machine; when running my Nvim-R-REPL this opens the working directory locally on /tmp/something.
I thought about experimenting with vim-slime (see https://github.com/jpalardy/vim-slime), repl.nvim (see https://github.com/HiPhish/repl.nvim) or neoterm (see https://github.com/kassio/neoterm), but I'm unsure if I could be able to try and replicate an Emacs-like experience.
Any ideas? Has anybody achieved something similar?