Skip to content

Commit fe0592d

Browse files
committed
bump required version of htmlwidgets to 1.3 (for async in shiny)
1 parent 1659ad5 commit fe0592d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Imports:
3333
viridisLite,
3434
base64enc,
3535
htmltools,
36-
htmlwidgets (>= 1.2),
36+
htmlwidgets (>= 1.3),
3737
tidyr,
3838
hexbin,
3939
RColorBrewer,

R/shiny.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ renderPlotly <- function(expr, env = parent.frame(), quoted = FALSE) {
4545
# Converts a plot, OR a promise of a plot, to plotly
4646
prepareWidget <- function(x) {
4747
if (promises::is.promising(x)) {
48-
if (utils::packageVersion("htmlwidgets") < "1.2.1") {
49-
warning("Async rendering of htmlwidgets requires v1.2.1 (or higher) of the htmlwidgets package.")
50-
}
5148
promises::then(x, ggplotly)
5249
} else {
5350
ggplotly(x)

0 commit comments

Comments
 (0)