Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIncreasing the width of rendered HTML in Shiny #127
Comments
|
Are you sure you are not dealing with a Shiny formatting issue (i.e. it is your shiny page that is making the display narrow)? Here I have two examples that get as wide as my laptop display: Generated with:
|
|
Thanks very much for replying and for the example. I have tried your example and can confirm that they do indeed fill up the width of the space. I see that theres two things causing the render to reduce in width..., for example if I do this...
Where I simply wrap htmlOutput(..) with fluidPage()..., the render halves in width... But if I remove it...., the render now becomes full width... Presumably it is the shiny settings? If so, is there a way to overcome this? Thanks again for your help on this. |
|
There is some unpleasant interaction between the I'll look at this when I work on #126, but that will probably not be for a while (months). In the meantime, you have one more option which is to use the ANSI CSI colored output of
This has its own drawbacks, so you will have to chose what you prefer. Alternatively, you can poke around the CSS and try to figure out what's going wrong. |
|
The issue boils down to the bootstrap CSS clashing with the css here Line 96 in c46b4d1 Note that the |
|
I will re-implement #127 or a variation thereof in the next couple of weeks. |




Hi, thanks very much for your help on an earlier issue #125 . Taking your example for rendering HTML...
HTML( as.character( diffPrint(1:3, 2:4, format='html',style=list(html.output='diff.w.style') ) ) )})I see that it fills half the width of the output space. I have tried changing the disp.width parameter but without success. I am wondering if there are other ways to increase the width so as to display more contents per line of space?
Thanks very much for your help on this.