Skip to content

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

@janlimbeck

Description

@janlimbeck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions