inst/shiny-app/server/preferences.R

observeEvent(input$preference_use_a_random_seed, {
  if (input$preference_use_a_random_seed) {
    shinyjs::enable("preference_random_seed")
  } else {
    shinyjs::disable("preference_random_seed")
  }
})

Try the LexOPS package in your browser

Any scripts or data that you put into this service are public.

LexOPS documentation built on Dec. 1, 2026, 5:06 p.m.