Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: plotly
Title: Create Interactive Web Graphics via Plotly's JavaScript Graphing Library
Version: 2.4.3
Version: 2.4.4
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
email = "cpsievert1@gmail.com"),
person("Chris", "Parmer", role = c("aut", "cph"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.4.4 -- 13 Feb 2015

as.widget() now returns htmlwidget objects untouched. See #449.

2.4.3 -- 11 Feb 2015

Ensure that we always return HTTPS links. Fixes #455
Expand Down
2 changes: 2 additions & 0 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ knit_print.plotly <- function(x, options, ...) {
#' htmlwidgets::saveWidget(as.widget(p), "index.html")
#' }
#'

as.widget <- function(x, ...) {
if (inherits(x, "htmlwidget")) return(x)
p <- plotly_build(x)
# set some margin defaults if none are provided
p$layout$margin <- modifyList(
Expand Down