Skip to content

Commit fde8b40

Browse files
committed
Merge pull request #448 from ropensci/fix/ggplot2-domain
Fix/ggplot2 domain
2 parents ae17cef + b5a00b0 commit fde8b40

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

DESCRIPTION

+1-1
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.4.0
3+
Version: 2.4.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

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.4.1 -- 2 Feb 2015
2+
3+
Attach base_url in as.widget() so it works in multiple contexts
4+
15
2.4.0 -- 1 Feb 2015
26

37
* Pass plot configuration using ... to avoid conflicts in defaults/documentation

R/plotly.R

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ plot_ly <- function(data = data.frame(), ..., type = "scatter",
9797
layout = NULL,
9898
url = NULL,
9999
width = width,
100-
height = height,
101-
base_url = get_domain()
100+
height = height
102101
)
103102

104103
if (evaluate) p <- plotly_build(p)

R/print.R

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ as.widget <- function(x, ...) {
3838
list(b = 40, l = 60, t = 25, r = 10),
3939
p$layout$margin %||% list()
4040
)
41+
p$base_url <- get_domain()
4142
# customize the JSON serializer (for htmlwidgets)
4243
attr(p, 'TOJSON_FUNC') <- to_JSON
4344
htmlwidgets::createWidget(

0 commit comments

Comments
 (0)