I have created lots of text inputs using a loop:
lapply(1:5, function(x){textInput(paste0('text',x), label = '')})
I have now input$text1, input$text2, input$text3 etc...
How can I debounce them using a loop?
The idea is to now have objects named debounced_text1,debounced_text2, etc..
Below does not work:
lapply(1:5, function(x){
assign(paste0('debounced_text',x),debounce(r = input[[paste0('text',x)]], millis = 1000), envir = .GlobalEnv)
})
I have also tried using get()
debounce(r = get(paste0('input$text',x), millis = 1000)
but using get() that way does not work.
Thank you in advance!