For loop for actionlinks in R Shiny Code

Hi, I'm trying to make a for loop that generates a list of buttons. I have the list in strings stored in the program then used the following code:
for(i in a){
this just shows a blank space whereas if i put say:
in the same spot it gives me that link there

Hi Clark:

It would be better to use the lapply function that returns a list (a tag list here):

myButtons <- lapply(seq_along(variable), function(i) { actionLink(...) })

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.