# NOT RUN {
if (interactive()) {
library(shiny)
library(rhandsontable)
library(shinyjs)
ui <- fluidPage(
useShinyjs(),
dataInputUI("input1"),
dataOutputUI("output1"),
rHandsontableOutput("data1")
)
server <- function(input,
output,
session) {
data_input1 <- dataInputServer("input1")
output$data1 <- renderRHandsontable({
if (!is.null(data_input1())) {
rhandsontable(data_input1())
}
})
dataOutputServer("output1",
data = data_input1
)
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab