Skip to content

Commit

Permalink
Close #1129. Always evaluate renderDT()'s ... in the parent.frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 14, 2024
1 parent b256b83 commit bc51ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ renderDataTable = function(
outputInfoEnv[["session"]] = NULL

exprFunc = shiny::exprToFunction(expr, env, quoted = TRUE)
argFunc = shiny::exprToFunction(list(..., server = server), env, quoted = FALSE)
argFunc = shiny::exprToFunction(list(..., server = server), parent.frame(), quoted = FALSE)
widgetFunc = function() {
opts = options(DT.datatable.shiny = TRUE); on.exit(options(opts), add = TRUE)
instance = exprFunc()
Expand Down

0 comments on commit bc51ab4

Please sign in to comment.