Skip to content

Commit

Permalink
Close #369: don't statically copy shiny::renderUI() at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Sep 29, 2021
1 parent dc1e15b commit 67afa4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/menuOutput.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@ menuItemOutput <- function(outputId) {
#'
#' shinyApp(ui, server)
#' }
renderMenu <- shiny::renderUI
renderMenu <- function(expr, env = parent.frame(), quoted = FALSE, outputArgs = list()) {
if (!quoted) {
expr <- substitute(expr)
quoted <- TRUE
}
shiny::renderUI(expr, env = env, quoted = quoted, outputArgs = outputArgs)
}

# R CMD check thinks that shiny::renderUI has an undeclared global variable
# called "func".
Expand Down

0 comments on commit 67afa4b

Please sign in to comment.