Set column width of a renderTable

687 views
Skip to first unread message

charlot...@gmail.com

unread,
Apr 28, 2015, 5:15:46 AM4/28/15
to shiny-...@googlegroups.com
Dear all,

Simple question but I did not manage to solve my problem myself !!

I need to set the column width of a matrix showed in my app.
I try to find option and it seems that I have to specify the align option. Thus, I wrote :

      output$Tab <- renderTable({
      
        tab <- matrix(0, 5,7)
      
        return(tab)
      }, align = "p\{3cm\}")

But indeed, it doesn't work !

I saw that this option is available in renderDataTable but I don't want to "search" elements in my table. Thus, a renderDataTable is unnecessary in my situation ..

Does anyone have any ideas?
Thank you in advance

cha

adrie...@hotmail.com

unread,
Apr 28, 2015, 5:58:02 AM4/28/15
to shiny-...@googlegroups.com
Hello, if you use the fluidRow(column(X system in ui.R in varying X from 1 to 12, columns width will increase,
does this resolve your problem ?
Adrien
Reply all
Reply to author
Forward
0 new messages