Skip to content

Commit dca6b82

Browse files
committed
module function should always have a session argument
1 parent ffef491 commit dca6b82

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

R/plotly.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ plot_ly <- function(data = data.frame(), ..., type = NULL,
119119
id <- new_id()
120120
# avoid weird naming clashes
121121
plotlyVisDat <- data
122-
123122
p <- list(
124123
visdat = setNames(list(function() plotlyVisDat), id),
125124
cur_data = id,

inst/examples/plotlyShinyModules/app.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ reusableUI <- function(id = NULL) {
1212
)
1313
}
1414

15-
viz <- function(input, output, scope, src) {
15+
viz <- function(input, output, session, src) {
1616

17-
# if you want, you can define multiple sources here
17+
# if you want, you can distinguish between events *within* a module
1818
src2 <- paste0(src, "2")
1919

2020
output$p1 <- renderPlotly({

0 commit comments

Comments
 (0)