While using browser()
with an active Shiny app, I can get a vector of all the inputs created using:
reactiveValuesToList(input) %>% names()
I can also get a vector of all the output names created using:
outputOptions(output) %>% names()
But what about if I want to get a list/vector of all the active observers?
Say make an actionButton with id = mybutton1, it will appear in the list of all inputs.
Now, I create an observer for mybutton1:
observeEvent(input$mybutton1, {
print("Button clicked!")
})
This observer is now created, right?
Is there a way I can access the list of observers with something like obs$names
or getObs()
? (I'm making these up).
If there is, can I simply get the name of an observer to destroy it? rm(obs$mybutton1)
or destroy(obs$mybutton1)
.