server.r
lineups <- read.csv(paste0("Data/FD/lineups.csv"), stringsAsFactors = F)
for (i in 1:150) {
output[[paste0("table", i)]] <- renderTable(lineups[(i * 10 - 9):(i * 10), ])
}
ui.r
lapply(1:150, function(i) {
tableOutput(paste0("table", i))
})
paul
February 6, 2019, 1:38am
2
try using lapply
in the server also.
explanation as to why for loops don't behave as you'd expect in this case here: renderUI uiOutput acts differently based on how list of outputs is defined
1 Like
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
system
Closed
February 13, 2019, 12:55pm
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.