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/
Related
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.)
I have Rational Functional Tester installed on my local machine, and I have written some scripts. I need to run these scripts on a remote machine.
Research shows I should be:
using RATIONAL TEST MANAGER
but the Rational Test Manager is now obsolete, since 2010.
I tried putting the scripts on RQM and run it through the web on remote machine, but for scripts to run from RQM we need an adapter which resides on the local machine.
How do I run my RFT scripts on a remote machine without installing RFT there?
execute rft test script using agent controller?
"Post RFT 8.2.0.1 , to be able to execute a script on a remote machine RFT must be installed on that machine.
*****EDIT***
RFT's installation is a complete package installation ,meaning when you install RFT it installs a complete product that is capable of recording /playback scripts on all the supported domains.
So it's not possible to say that on this machine X install only the recorder and on the machine Y install only the playback engine.
Another approach perhaps could be to have some kind of tool on the server machine that would say that here is the script , go and execute on the machine Z , that does not have RFT installed .. but as the script may have controls recorded for all the domains (html/java/.net/SAP/Win32) all the supporting files DLLs /JARs (consiting of proxies and OS related shared libraries) would have to be transferred to that machine and that I think would be quite a task to do :) . So in my opinion it's not impossible but it's just not been done yet."
Answer Two:
"Wrong, it is not impossible. Just takes a lot of configuration. http://www-01.ibm.com/support/docview.wss?uid=swg21319598
To execute RFT scripts on a remote machine: Make sure the scripts (java or .net ) are compiled before deploy for remote execution. After they are compiled successfully, In order to start remote execution, on the master machine, the Test Manager needs to be installed and configured correctly.
The following is the configuration on the TM on the master machine: In the "Execution" tab, right click on "Computers", and add new computer,specify the computer name, property, and the port information, so TM will be able to locate the remote machine. The set up for the remote machine will be described separately for java script and .net script. For java script, the following is needed on the remote machine: Test Manager Test Agent. (can be installed from Test manager CD). Rational Functional Tester Test Agent.( can be installed from RFT installation package). For .net script, the following is needed on the remote machine: Test Manager Test Agent. (can be installed from Test manager CD). Rational Functional Tester Test Agent.( can be installed from RFT installation package). .Net framework.(Visual Studio is not needed on the remote machine, there is currently defect on this, reference to a separate tech note on the workaround for this, searching "remote execution with .net script").
Last, but not the least, If the customer's AUT is Windows/.net/SAP based, then .net framework needs to be installed on the remote machine regardless whether it is java scripting or .net scripting. This is because some part of RFT's code gets placed into the application during infestation, the RFT code for these applications are written in C#, so at run time, the .net framework is needed to playback successfully."
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.
I am working on a small website based on an example ServiceStack project. It is a standalone web app so that there is no need for IIS etc. Currently I start the server at http://localhost:8080 and opening the website in my local browsers seems to work fine.
My PC has a dedicated IP and I hope to test my server from another computer. I can successfully get a Python server running using python -m SimpleHTTPServer 8000, so network is working fine.
But the remote computer cannot access my ServiceStack server. I think there should be a simple setting somewhere to get it working. But I searched online, there is much information about IIS and ASP.Net. But my app is standalone and is independent of Asp.net. It is supposed to be running on Linux as well as on Windows. (Though I will only deploy on a Windows machine now.)
It will work fine on your local computer because the firewall doesn't block local traffic. If you want any other computer to access services running on your machine you will need to open the ports on the firewall.
This can be configured from the Windows Firewall in Control Panel
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.