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