Skip to content

Instantly share code, notes, and snippets.

@thisisnic
thisisnic / action_button_in_DT.R
Last active January 12, 2024 00:38
Example of how to include actionButtons in a DT, with one observer for all buttons
# Adapted from https://stackoverflow.com/questions/45739303/r-shiny-handle-action-buttons-in-data-table
library(shiny)
library(DT)
library(tibble)
#' Programmatically create a Shiny input
#'
#' @param FUN function to create the input
#' @param n number of inputs to be created