Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate R shiny into current application

Tags:

I am wondering if one can integrate R shiny into the current website (PHP or RoR). I just want to leverage the power of R Shiny to make an app embedded into the current website. But as far as I know Shiny needs to run on its own server instead of Apache. Is it possible for a seamless integration without using iframe?

Thanks

like image 643
zsljulius Avatar asked Mar 23 '13 21:03

zsljulius


People also ask

Do you need R to run Shiny app?

But the simplest way to run a Shiny app is to run it locally. You only need the shiny R package installed, and you can run the app in your browser. In this post you'll see a few ways of how to organize your files to be served locally.

How do I add a Shiny dataset?

Your title asks about importing a data frame into shiny. That can be done by storing the data frame either as a binary file using the save() function or a csv file using write. csv() and having the shiny app read it in using load() for a binary file or read. csv() for a csv file.


1 Answers

An alternative is to use an iframe (HTML), as is described here: https://groups.google.com/forum/?fromgroups=#!topic/shiny-discuss/2VwEWXYJwYs

An example is shown here: http://stla.overblog.com/reactive-3d-surface

Hope this helps

like image 154
Timror Avatar answered Oct 14 '22 21:10

Timror