Created
October 26, 2012 17:27
-
-
Save jcheng5/3960092 to your computer and use it in GitHub Desktop.
Simple matrixInput example
This file contains hidden or 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(shiny) | |
shinyServer(function(input, output) { | |
output$plot <- reactivePlot(function() { | |
plot(input$foo) | |
}) | |
}) |
This file contains hidden or 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(shiny) | |
library(shinyIncubator) | |
shinyUI(pageWithSidebar( | |
headerPanel('Simple matrixInput example'), | |
sidebarPanel( | |
matrixInput('foo', 'Foo', head(cars)) | |
), | |
mainPanel( | |
plotOutput(outputId='plot') | |
) | |
)) |
Hi. When I try to install the shinyIncubator package, I get a warning saying that it is not available for R version 3.2.1
Is there any updates or a more recent solution to editable data frames in shiny?
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Joe,
If I replace line 7 of ui.R by my own data, it does'nt work
Line 7 (changed): matrixInput('foo', 'Foo', matrix(c(1:6),nrow=2))
could you tell me what's wrong?
Thank's,
Claude