I have a pair of auxiliary inputs that allows user to choose combinations from a set of choices. Also, it is convenient one to be able to remove an item that was created before.
For this task, a named list, in the form of reactiveValues object, listN <- reactiveValues()
, will be in charge to store these information.
The function to ADD items is working like a charm, but when I try to REMOVE items from listN
, its item names persists forever!
My strategy was make use of reactiveValuesToList()
, manipulate its items and replace listN
with a brand new instance of reactiveValues()
(or do.call(reactiveValues, listN_as_list)
.
I stored a reproducible app at Gist. I hope it is sufficient to you guys help me out. Please insist in more clarification if needed.
URL:
gist.github.com/d43e72959c4576d27535
Code to run on console:
shiny::runGist('d43e72959c4576d27535')
Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…