Skip to content

plotlyOutput broken - unused argument (reportTheme = TRUE) #1868

Closed
@ismirsehregal

Description

@ismirsehregal

Using the latest GitHub version (4.9.2.9000) of plotly, shiny 1.5.0 and htmlwidgets 1.5.2 the provided example gives:

Error in (function (outputId, name, width, height, package = name, inline = FALSE, :
unused argument (reportTheme = TRUE)

library(shiny)
library(plotly)

ui <- fluidPage(
  plotlyOutput("testPlot")
)

server <- function(input, output, session) {
  plot_ly(y = 1:10, type = "scatter", mode = "lines")
}

shinyApp(ui, server)

The problem seems to be introduced here:

  if (is_available("shiny", "1.4.0.9003") && is_available("htmlwidgets", "1.5.1.9001")) {
    args$reportTheme <- reportTheme
  }

reportTheme is available since htmlwidgets 1.5.2.9000 not 1.5.1.9001.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions