jqui_resizable only effects first element in tagList in a markdown document
janlimbeck opened this issue · 0 comments
janlimbeck commented
Hi,
I am trying to create an RMarkdown html document in which some plotly plots are resizable. The number of plots is dynamically determined at runtime hence I am using tagList to eventually embed the plotly plots in the document.
When I am trying to add jqui_resizable to the plots it only works for the first any element in the tagList. Please find a minimal example below.
---
output: html_document
title: tagList example
---
This example shows that jqui_resizable only makes the first element of a tagList resizable in a markdown document
```{r tagList, echo=FALSE}
suppressPackageStartupMessages({
library(shiny)
library(shinyjqui)
library(plotly)
})
tList <- tagList()
for (i in 1:3) {
tList[[i]] <- ggplotly(qplot(1:10, 1:10)) %>% jqui_resizable
}
tList