I think you might want to try the free/open RStudio Server in a docker container that is running either on your local/test system. Basically, RStudio is a browser of sorts, so there is very little difference in your experience using RStudio native app or the browser/RStudio-server. I've been switching between both for years, first as AWS-VMs, and then docker for the last few years. R Open Sci has helped demo and maintain example containers for some years now, and their emphasis on reproducible analysis is not so different from reproducible execution between test/deployment environments...
https://ropenscilabs.github.io/r-docker-tutorial/02-Launching-Docker.html
(also google "Rstudio docker rocker")
If you're using the "pro" version of RStudio products I think you might want to look at this quick blog post, but I haven't tried: