Skip to content

Commit

Permalink
Use global envir for prerender if an envir was not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Aug 19, 2021
1 parent 971e0ab commit 523fc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/shiny_prerendered.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ shiny_prerendered_html <- function(input_rmd, render_args) {
args <- merge_lists(list(input = input_rmd), render_args)
# force prerender to execute in separate environment to ensure that
# running w/ prerender step is equivalent to running the prerendered app
args$envir <- new.env(parent = args$envir)
args$envir <- new.env(parent = args$envir %||% globalenv())

# execute the render
rendered_html <- do.call(render, args)
Expand Down

0 comments on commit 523fc02

Please sign in to comment.