title: R Shiny Wrapping UI elements
body: <p>Is there any way to wrap UI elements? I've got a <code>checkboxGroupInput</code> and I'd like to wrap the elements so they fit into the whole <code>wellPanel</code>?</p>
  
  <p>EDIT: Reproducible Example added Below. </p>
  
  <p>Where the checkboxes list in the wellPanel, I'd like a way to wrap it to the width of the wallPanel, so that it saves space and creates a better layout. Any suggestions? </p>
  
  <p><strong>global.R</strong></p>
  
  <pre><code>library(shiny)
  library(shinyIncubator)
  data_in &lt;- c(1:50)
  </code></pre>
  
  <p><strong>ui.R</strong></p>
  
  <pre><code>library(shiny)
  library(shinyIncubator)
  
  shinyUI(fluidPage(
    fluidRow(
      headerPanel('Test Page')
    ),
    fluidRow(
      plotOutput('plot')
    ),
    fluidRow(
      wellPanel(uiOutput("checkbGroups"))
    )
  ))
  </code></pre>
  
  <p><strong>server.R</strong></p>
  
  <pre><code>shinyServer(function(input, output) {
    values &lt;- reactiveValues()
  
    datasetInput &lt;- reactive({
      values$data &lt;- input$foo
    })
  
    plotInput &lt;- reactive({
      datasetInput()
      plot(x=values$data, y=values$data, col=values$data)
    })
  
    output$checkbGroups &lt;- renderUI({
      checkboxGroupInput(inputId = 'foo', label = 'Numbers To use', 
                         choices = data_in, 
                         selected = data_in)
    })
  
    output$plot &lt;- renderPlot({
      plotInput()
    })
  })
  </code></pre>