RStudio through SecureCRT - r

I would like to setup RStudio so that it uses a remote R session (console) that I am connected to through secureCRT. Is there a way to tunnel commands so that they are sent directly from RStudio to that remote session?

I'm not aware of any way to do this, but if your goal is to have an R session running somewhere remotely that you can connect to from anywhere, this is indeed possible using RStudio.
Set up the RStudio Server--it will start a web server that serves the RStudio IDE as a web app. From there, you can connect to your R session (and IDE session) from any web browser.

Related

Run Shiny App on Windows Server

I want to run a Shiny application on a Windows Server. The shiny application runs on Port 8080 and the traffic is routed through IIS. Everything works fine, but from time to time the application crashes. So far I've written a small R script which proofs whether the application is available and if not it restarts the Shiny app. The script is called by Task Scheduler. This solution is kind of messy and the Scheduler does not work as expected.
Are there any similar set-ups or are there any pre-defined solutions, such as the Shiny Server? (I'm not allowed to install a VM. Unfortuentaly, it must be a Windows-only solution.)

How to run R codes on remote machine from local machine

maybe the question title is a little bit weird... I will explain more here...
Basically, suppose that I have a local laptop and a remote machine. I can of course run R tasks on the remote machine itself. Now I wonder if I can connect the remote machine from my local R and run the tasks on the remote machine while I still call these things in my local machine... that is I don't need to open R or type/source R codes on the remote machine.
One related thing is that I am considering to develop a small app with R-shiny. As far as I understand, though I just started looking into it, one can have R installed the local machine and use the app - the calculation will be done in R on the same machine. This question is essentially that if it is possible to add a feature of “connection to a calculation back end” in the app, i.e. by connecting to the remote machine, the task is done on the remote machine when one uses the app on his local machine.
You can do this with RStudio Server. It runs RStudio inside a web server on the remote machine. You connect to it from the web browser on your local laptop, so you can still enter your R code on the local machine.
RStudio Server can be downloaded here:
https://www.rstudio.com/products/rstudio/download-server/

Hosting LAN Shiny apps run from command line

I am trying to host a Shiny app on a machine hooked up to a LAN. In the directory housing my app, I have the server.R, ui.R, and launcher.R scripts. The launcher.R file looks like:
#!/usr/bin/Rscript
library(shiny)
setwd("~/path/to/shinyApp/")
shiny::runApp(host="0.0.0.0",port=4414)
When I run this via RStudio, the app launches, behaves normally, and can be accessed by other machines through the LAN by going to 987.65.43.21:4414 in a browser. When I run the app with launch.browser=T, the address reads 127.0.0.1:4414.
I want to be able to run the launcher and host the app without RStudio running. When I try running the launcher code via command line, the app gives the usual messages
Loading required package: methods
Listening on http://0.0.0.0:4414
but I cannot access the app through a LAN browser. If I navigate to the 127.0.0.1:4414 on the host machine, I can access it, but not via the machine's IP on another machine like I could when running RStudio.
Does anyone have any insight on what could be going on? Thanks!
Install shiny-server from here this will allow you to access your shiny apps from your LAN. Just put your shiny files in /srv/shiny-server/myApp and you can access them through xx.xx.xx.xx:3838/myApp/

Can RStudio Desktop be used as a client to RStudio Server? (instead of the web interface)

I am aware that I can use RStudio server on my remote machine, and connect to that via a web browser on my client machine.
However, I would prefer not to use my web browser. Is it possible to set up RStudio Desktop to connect to the RStudio Server?
Many thanks
There is an alternative: create Rstudio Server webapp.
This is how I did it:
Login to the rstudio server from the browser using serverip:8787
On the menu bar, go to File (or Tools in some cases) -> Create application shortcut. This dialogue box will appear:
Rstudio shortcut
Add it to your desktop by selecting and run it as if you're running rstudio desktop version.
Rstudio webapp screenshot

Can RStudio (IDE NOT server) be configured to use remote R setup?

I am transitioning my debian setup into one where all debian-repository external apps run in dedicated docker containers.
In this context rstudio, of which I am a heavy user, has me puzzled ... does anybody have insight into whether it's possible to run it as a client to remote R installation?
What is a very cool feature of RStudio is RStudio Server. You install RStudio Server on you Ubuntu server and log in to a specific port where RStudio Server is running. You then get your full RStudio interface in your web browser. This allows you to run all your R analyses from any computer that has a modern browser and an internet connection.
R then runs on the remote server, asking almost no resource from the computer you are connecting from.

Resources