Alternative Bootstrap stylesheet in a navbarPage under shiny-server

520 views
Skip to first unread message

Alain Vanlanduyt

unread,
Apr 17, 2014, 7:46:19 AM4/17/14
to shiny-...@googlegroups.com
Hi all

I use the possibility of change the theme in a NavBarPage  via intruction in my ui.R

shinyUI (NavBarPage (theme = "bootstrap.min.css", "MyApp", .....

The file bootstrap.min.css is located in www\css; it works fine in the "stand alone" version; but if I move the code (and files) to the Linux shiny-server (ubuntu 14.04), the navigation page does not work (all widgets appear on the same page); if I do not use the alternative theme then it works but in the standard version of navbarPage.

Is it possible to use an alternative theme under the shiny-server version?

Thank you for your help
 
Alain

Arnab Dutta

unread,
May 19, 2014, 3:09:47 AM5/19/14
to shiny-...@googlegroups.com
Hi Alain,

I tried this and it worked on Linux shiny server (Ubuntu). The bootstrap css is saved inside www folder.

shinyUI(
  navbarPage("App Title",
                   tabPanel("Plot"),
                   navbarMenu("More",
                              tabPanel("Summary"),
                              tabPanel("Table"),
                             
                   ),
                   theme="bootstrap.css"
))

regards,
Arnab

Carlos Sánchez

unread,
Oct 16, 2014, 12:31:34 PM10/16/14
to shiny-...@googlegroups.com
Hi,

This does not work for me either. If I include a theme in the navbarPage definition everything is broken :(


I'm on a RHEL6 machine running the latest version of R and Shiny Server. I downloaded the Bootstrap theme from Bootswatch and placed it in www.  Any suggestions?

Thanks.

Carlos
Reply all
Reply to author
Forward
0 new messages