I would like to use an ordered/unordered list such as the following:
tags$ul(
tags$li("Item 1"),
tags$li("Item 2"),
tags$li("Item 3"),
tags$li("Item 4")
)
However, I would like the number of items in the list to be dependent on some other factor; that is, not of fixed size. Is this possible?
For example, if my character vector ends up being size 3, then I want to display the three elements in it as three separate rows. If the vector is size 10, then it should be an ordered/unordered list with 10 levels.
So asking for two things here:
- Make the ordered/unordered list of varying size depending on some variable
- Display certain text in each of the levels that also varies depending on which rows are shown