More attractive printing from Shiny in Windows Chrome browser?

56 views
Skip to first unread message

Joseph Chou

unread,
May 7, 2015, 6:52:00 PM5/7/15
to shiny-...@googlegroups.com
I was wondering if anyone had suggestions on better looking output for printing Shiny output from the brower to a printer, on Windows.

My Shiny App uses a typical sidebarLayout with a sidebarPanel and a mainPanel. If Shiny runs from RStudio, the App runs as expected, but you can't print the page.

So, when I runApp( launch.browser = TRUE),

- on my Mac in Safari, the Shiny App displays beautifully, and prints out as expected

- on the hospital Windows workstation, if the system's default browser is Internet Explorer, it fails (not compatible with Shiny I guess)

- on the hospital Windows workstation, if the system's default browser is changed to Chrome, the output looks fine in Chrome, but when you print it, the sidebar and main panels are no longer side-by-side; this is unsightly, but the nurses need paper 

So I actually have 2 questions:

1) how do you get a sidebar / main panel output to print out nicely in Windows?

2) is it possible when using runApp(launch.browser = TRUE) to select which browser is started? The hospital will not take kindly to my changing the default browser on multiple workstations

Thanks for any tips.

Joe

William Beasley

unread,
May 8, 2015, 2:03:39 AM5/8/15
to shiny-...@googlegroups.com
Would it make sense to print a knitr report from Shiny instead?  You'd have a lot more control of the format across different platforms/computers.

Reply all
Reply to author
Forward
0 new messages