Skip to content

Commit 509d416

Browse files
committed
Downgrade to plotly.js v1.16.3 for stability. Temporarily fixes #717
1 parent 3ef7831 commit 509d416

File tree

7 files changed

+65
-64
lines changed

7 files changed

+65
-64
lines changed

R/sysdata.rda

-286 Bytes
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ devtools::install_github("ropensci/plotly")
2222

2323
### Web-based ggplot2 graphics
2424

25-
If you use [ggplot2](http://cran.r-project.org/package=ggplot2), `ggplotly()` converts your plots to an interactive, web-based version! It also provides sensible tooltips, which assists decoding of values encoded as visual properties in the plot.
25+
If you use [ggplot2](https://github.com/hadley/ggplot2), `ggplotly()` converts your plots to an interactive, web-based version! It also provides sensible tooltips, which assists decoding of values encoded as visual properties in the plot.
2626

2727
```r
2828
library(plotly)

inst/examples/Movies/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
library(shiny)
22
library(plotly)
3-
library(ggplot2movies) # movies is no longer contained within ggplot2 https://cran.r-project.org/web/packages/ggplot2movies/index.html
3+
library(ggplot2movies) # movies is no longer contained within ggplot2
44

55
minx <- min(movies$rating)
66
maxx <- max(movies$rating)

inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js

Lines changed: 56 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/htmlwidgets/plotly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ HTMLWidgets.widget({
88
// uncomment this console.log(), then do `load_all(); plot_ly()`
99
// open in chrome, right-click on console output: "save-as" -> "schema.json"
1010
// Schema <- jsonlite::fromJSON("~/Downloads/schema.json")
11-
// devtools::use_data(Schema, overwrite = T)
11+
// devtools::use_data(Schema, overwrite = T, internal = T)
1212
// console.log(JSON.stringify(Plotly.PlotSchema.get()));
1313
return {};
1414
},

inst/htmlwidgets/plotly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: plotlyjs
3-
version: 1.17.2
3+
version: 1.16.3
44
src: "htmlwidgets/lib/plotlyjs"
55
script: plotly-latest.min.js
66
stylesheet: plotly-htmlwidgets.css

inst/plotlyjs.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
library(httr)
22
x <- GET('https://api.github.com/repos/plotly/plotly.js/releases/latest')
33
zip <- content(x)$zipball_url
4+
# for a particular version:
5+
# zip <- "https://github.com/plotly/plotly.js/archive/v1.16.3.zip"
46
tmp <- tempfile(fileext = ".zip")
57
download.file(zip, tmp)
68
unzip(tmp)
79
# update the plotly.js bundle
8-
p <- Sys.glob("plotly-plotly.js*/dist/plotly.min.js")
10+
p <- Sys.glob("*plotly.js*/dist/plotly.min.js")
911
file.copy(p, "inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js", overwrite = T)
10-
l <- Sys.glob("plotly-plotly.js*/LICENSE")
12+
l <- Sys.glob("*plotly.js*/LICENSE")
1113
file.copy(l, "inst/htmlwidgets/lib/plotlyjs/LICENSE", overwrite = T)
12-
unlink("plotly-plotly.js*", recursive = T)
14+
unlink("*plotly.js*", recursive = T)
1315
message("Manually update plotly.yaml with this version")
1416
basename(zip)
1517

0 commit comments

Comments
 (0)