title: R shiny error: Error in html tools::validateCssUnit(height); CSS units must be a single-element numeric or character vector
body: <p>Am learning to use R shiny and I am trying to create a heatmap that allows the user to specify the height in plotlyOutput to prevent labels from being clumped together. My minimal working code:</p>
  
  <pre><code>library(shiny)
  library(plotly)
  
  ui &lt;- fluidPage(
  
  titlePanel("Heatmap"),
  sidebarLayout(
  sidebarPanel(
    sliderInput("mapHeight", 
                "Heatmap Height", 
                 min = 500, 
                 max = 1000,
                 value =500),
    sliderInput("L", "left adjust", min = 0, max =900, value = 80)
    ),
    mainPanel(plotlyOutput("heatmap"))
    )
    )
  
  server &lt;- function(input, output) {
  
   output$heatmap &lt;- renderPlotly({ 
   p&lt;- heatmaply(mtcars, plot_method = "plotly")%&gt;% 
    layout(margin = list(l = input$L, r =50 , t=0, b=90))
   #not sure why this is being ignored
   ggplotly(p, height = input$mapHeight)
   })
   }
  
  shinyApp(ui = ui, server = server)
  </code></pre>