Skip to content

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

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

Closed
ismirsehregal opened this issue Oct 21, 2020 · 1 comment
Closed

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

ismirsehregal opened this issue Oct 21, 2020 · 1 comment

Comments

@ismirsehregal
Copy link

ismirsehregal commented Oct 21, 2020

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.

@cpsievert
Copy link
Collaborator

Thanks for letting me know!

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

2 participants