Created
June 16, 2013 10:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("shinyIncubator") | |
library("shiny") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shinyServer(function(input, output, session) { | |
output$table <- renderTable({ | |
as.data.frame(input$mat) | |
}) | |
}) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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