Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a0fa68f

Browse filesBrowse files
committed
go back to using ggplotly() to prepare the widget for shiny rendering
* the extra call to plotly_build() forces more computation then necessary and fixes plotly#1569
1 parent 2a439bc commit a0fa68f
Copy full SHA for a0fa68f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎R/shiny.R

Copy file name to clipboardExpand all lines: R/shiny.R
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ renderPlotly <- function(expr, env = parent.frame(), quoted = FALSE) {
5858
# Converts a plot, OR a promise of a plot, to plotly
5959
prepareWidget <- function(x) {
6060
p <- if (promises::is.promising(x)) {
61-
promises::then(x, plotly_build)
61+
promises::then(x, ggplotly)
6262
} else {
63-
plotly_build(x)
63+
ggplotly(x)
6464
}
6565
register_plot_events(p)
6666
p

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.