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:
a<-1:length(variable)
for(i in a){
actionLink(variable[i],variable[i])
}
this just shows a blank space whereas if i put say:
actionLink(variable[1],variable[1])
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.