Embedding a Shiny application in a html document

17,696 views
Skip to first unread message

Stéphane Laurent

unread,
Mar 15, 2013, 9:27:49 AM3/15/13
to shiny-...@googlegroups.com
Hello,
I use Shiny applications running with the RStudio server. How to embed them in a html document ? 
I am ignorant about html. In my (experimental) blog I publish articles obtained by copying the source code of an html file produced with `knitr`, and I'd like to write an article including a Shiny application.

Winston Chang

unread,
Mar 15, 2013, 10:52:16 AM3/15/13
to shiny-...@googlegroups.com
You can use an iframe -- that's actually what's done on the main RStudio Shiny page: http://www.rstudio.com/shiny/

The code there is something like this:
<iframe src="http://glimmer.rstudio.com/rstudio/faithful/" style="border: none; width: 440px; height: 500px"></iframe>

-Winston

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stéphane Laurent

unread,
Mar 15, 2013, 1:19:18 PM3/15/13
to shiny-...@googlegroups.com
Message has been deleted
Message has been deleted

Stéphane Laurent

unread,
Mar 15, 2013, 5:58:43 PM3/15/13
to shiny-...@googlegroups.com
Thank you again Winston. 
I have written my article. Please see the rendering here http://stla.overblog.com/reactive-3d-surface 
 The future of scientifc reports is coming :-)

Joe Cheng

unread,
Mar 15, 2013, 6:06:13 PM3/15/13
to shiny-...@googlegroups.com
Very nice!


--

Stéphane Laurent

unread,
Mar 17, 2013, 4:34:58 PM3/17/13
to shiny-...@googlegroups.com
Thank you Joe. 

I have just found a nice way to create html slides from Markdown with Pandoc and I have given an example including my Shiny application: http://math.stackexchange.com/questions/332660/writing-mathematical-presentations-using-mathjax/333102#333102

Zhen Song

unread,
Sep 30, 2013, 8:06:50 PM9/30/13
to shiny-...@googlegroups.com
Very cool. Thanks for sharing it Stephane.

ZJ

unread,
Sep 30, 2013, 9:57:58 PM9/30/13
to shiny-...@googlegroups.com
Pretty cool

OB83

unread,
Nov 8, 2013, 4:34:04 AM11/8/13
to shiny-...@googlegroups.com
How to get the original layout (left, mainpanel). Your layout is top down, not the usual layout shiny has. Any idea?

Op vrijdag 15 maart 2013 14:27:49 UTC+1 schreef Stéphane Laurent:

Stéphane Laurent

unread,
Nov 8, 2013, 12:32:10 PM11/8/13
to shiny-...@googlegroups.com
I don't know a precise answer, cause I am really not proficient in html. 
But you shoud not draw some conclusions from the article of my blog: there are many styles options which are automatically set by the overblog website, and I don't control these options. For example, try the following minimal html file :

<!DOCTYPE html>

<html>

<body>
    
<iframe src="http://glimmer.rstudio.com/stla/3Dsliced/" style="border: black; width: 1500px; height: 700px"></iframe>       

</body>
</html>

and try to play with the options in iframe (googling for "html iframe" provides a lot of informations). 

Don Brown

unread,
Nov 11, 2013, 7:17:52 AM11/11/13
to shiny-...@googlegroups.com
Hello,

My main customer that needs this functionality has recently applied a patch on their IIS web server that messes up anything in an iframe. Is there a way to embed R/Shiny without using an iframe?

Thank you in advance!

Don

Stéphane Laurent

unread,
Nov 11, 2013, 7:36:09 AM11/11/13
to shiny-...@googlegroups.com
Hi,
Have you tried to request a Google search with "html alternative iframe" ?

MySchizo Buddy

unread,
Nov 14, 2013, 7:03:21 AM11/14/13
to shiny-...@googlegroups.com
isn't the future of scientific reporting already here using iPython :)

Stéphane Laurent

unread,
Dec 25, 2013, 3:51:17 PM12/25/13
to shiny-...@googlegroups.com
Thanks to Ramnath Vaidyanathan's incredible poirot package, I migrate my blog to Github: http://stla.github.io/stlapblog/
Reply all
Reply to author
Forward
0 new messages