[R] Running R in Server

Swagato Chatterjee swagato1987 at gmail.com
Wed Aug 19 00:12:45 CEST 2015


Dear all,

Thenks for replying to my query.

*@Amaud: If I understand correctly what you want to do, you might be able
to create a HTML report using RMarkdown and host that on the website.  If
you really need a web app, I suggest looking into Shiny.  You can make a
shiny app, host it for free on the cloud.  You will have a lot to learn,
but it will be time well spent.  https://www.rstudio.com/
<https://www.rstudio.com/>*

Obviously I have shiny as an option.But I was thinking PHP based GUI is a
better fit for me as I have very limited resources in my team who can
create a Shiny app and implement it with the all the functionalities of a
PHP based GUI.

*Have a look at deployR on Revolutioanalytic website. There is a free
open-source solution for windows.*

I'll check this.

*@John: Statement: You have a Windows desktop and have used R on it, so you
are familiar with R in a Windows environment.​*
*Statement: You are not Linux (Ubuntu) trained.*
*Statement: You wrote an R script on Windows, which works, but you need to
run it on Ubuntu.*

*The above is my starting point. Now I have some questions.*

*Can you connect to the Ubuntu server from your Windows desktop? If so,
how? If not, I'm confused about how you could get anything to run on the
Ubuntu server.*

My developer has given me an username and password which I can use to
connect the server using Putty. The GUI is being developed in Ubuntu server
only using PHP and my the results of my RScript (figures and tables) will
be the input of the GUI. Having said that, I have limited knowledge how to
implement the R and run the script in server after loggin in to the server.

*Where does this "dataset" reside? On you desktop? On a Windows shared
folder? On the Ubuntu server? Other?*

Right now, on my desktop. But soon the dataset will be residing on a server.

*Who or what edits the "dataset"? That is, is it always yourself? Some one
in your group? Some other human? Some automated process?*

The input data of my Rscript again comes from another app and the database
is also residing on the same server. The update of the dataset is being
done by the app automatically.

*Why can't you run the R script as you do now, then deploy the results to
the Ubuntu server? Since I don't know the environment that the Ubuntu
server runs in, I can't address how to deploy an updated file into it. I
assume you have some sort of deployment software. It could be as easy as
being able to ftp the results from your desktop to the proper places on the
Ubuntu server.*

I cannot run the R script as I do now because the Rscript will also be
called for automatically so that the results of the Rscript go as an input
to the end app. PFA the architecture picture.

*@Loris: However, you'll probably have to make sure that all the packages
you*
*need are installed on the server.*

This is where I need a help.​

Thanks and Regards,

Swagato


More information about the R-help mailing list