Skip to content

Commit e8cb060

Browse files
committed
upgrade to plotlyjs 1.4
1 parent fdc5eb3 commit e8cb060

File tree

6 files changed

+60
-49
lines changed

6 files changed

+60
-49
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotly
22
Title: Create Interactive Web Graphics via Plotly's JavaScript Graphing Library
3-
Version: 2.1.0
3+
Version: 2.1.1
44
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
55
email = "[email protected]"),
66
person("Chris", "Parmer", role = c("aut", "cph"),

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.1.1 -- 11 Jan 2015
2+
3+
Upgraded to plotlyjs 1.4. For a list of changes, see https://github.com/plotly/plotly.js/releases/tag/v1.4.0
4+
15
2.1.0 -- 29 Dec 2015
26

37
plot_ly() now defaults to inherit=FALSE and plotly_build() is now idempotent. Fixes #280 and #277. See #368 for details.

inst/htmlwidgets/lib/plotlyjs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Plotly, Inc
3+
Copyright (c) 2016 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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

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

inst/htmlwidgets/plotly.yaml

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

inst/plotlyjs.R

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
download.file(
2-
"http://cdn.plot.ly/plotly-latest.min.js",
3-
"inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js"
4-
)
5-
6-
download.file(
7-
"https://raw.githubusercontent.com/plotly/plotly.js/master/LICENSE",
8-
"inst/htmlwidgets/lib/plotlyjs/LICENSE"
9-
)
1+
library(httr)
2+
x <- GET('https://api.github.com/repos/plotly/plotly.js/releases/latest')
3+
zip <- content(x)$zipball_url
4+
tmp <- tempfile(fileext = ".zip")
5+
download.file(zip, tmp)
6+
unzip(tmp)
7+
p <- Sys.glob("plotly-plotly.js*/dist/plotly.min.js")
8+
file.copy(p, "inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js", overwrite = T)
9+
l <- Sys.glob("plotly-plotly.js*/LICENSE")
10+
file.copy(l, "inst/htmlwidgets/lib/plotlyjs/LICENSE", overwrite = T)
11+
unlink("plotly-plotly.js*", recursive = T)
12+
# update plotly.yml with version
13+
basename(zip)

0 commit comments

Comments
 (0)