example <- paste0(
  rprojroot::find_package_root_file(),
  "/inst/examples/shiny.R"
)
do.call(knitr::read_chunk, list(path = example))

If you click on an object, the onclick event sends the resulting picking info object to your Shiny application and updates the corresponding input in the form of input$widgetId_onclick. For the example above the widgetId is deck, so that you access the info object via input$deck_onclick.



crazycapivara/deckgl documentation built on March 29, 2023, 4:10 a.m.