Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jqui_resizable only effects first element in tagList in a markdown document #91

Open
janlimbeck opened this issue May 26, 2023 · 0 comments

Comments

@janlimbeck
Copy link

janlimbeck commented May 26, 2023

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.

image

---
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant