diff --git a/R/plotly.R b/R/plotly.R index 33c0a2f766..bec2f96f6b 100644 --- a/R/plotly.R +++ b/R/plotly.R @@ -388,7 +388,7 @@ plotlyMainBundle <- function() { plotlyHTMLWidget <- function() { htmltools::htmlDependency( "plotlyjs-binding", packageVersion("plotly"), - src = depPath(".."), + src = system.file('htmlwidgets', package = 'plotly'), script = "plotly.js" ) }