Sunday, December 23, 2018

r - Integrating multiple shiny apps into one shiny website

How can one integrate multiple shiny apps into one shiny website?



I've tried using the navbar example and iframes, however the iframes sometimes have major problems with sizing and scrolling.




Here's the iframe code:



tabPanel("seam",
tags$iframe(src="/01_hello",frameborder=0,align="center",seamless=NA)),


note: seamless is basically not supported by most browsers.



It's also not possible to size the iframes correctly for each app, since the app dimensions change as they're used. I've even tried to use javascript to resize the iframe when needed as in here or here.




Any ideas?
I've considered integrating the apps as in the linked navbar example, however they're so different and use such large and separate datasets that it's unlikely to work well. Also using iframes allows separate threads for each application and makes things more manageable.



Here are some examples of failures:




  1. Wrong dimensions:
    enter image description here


  2. For this one, if I shrink the height I get a double scroll bar, when I don't I get a large empty space.
    enter image description here



  3. Here's a double scrollbar.
    enter image description here

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...