Skip to content

Instantly share code, notes, and snippets.

@SachaEpskamp
Created June 16, 2013 10:02
Show Gist options
  • Save SachaEpskamp/5791586 to your computer and use it in GitHub Desktop.
Save SachaEpskamp/5791586 to your computer and use it in GitHub Desktop.
Example of matrixInput not working in Shiny 0.6 but working in 0.5.
library("shinyIncubator")
library("shiny")
shinyServer(function(input, output, session) {
output$table <- renderTable({
as.data.frame(input$mat)
})
})
shinyUI(pageWithSidebar(
# Header:
headerPanel("Test"),
# Input in sidepanel:
sidebarPanel(
matrixInput('mat','Matrix:', as.data.frame(matrix(1,4,4)))
),
# downloadLink('downloadData', 'Download PDF')
# Main:
mainPanel(
tableOutput("table")
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment