Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1193: adjust the environment in which R code chunks in Shiny Rmd…
… are evaluated The environment should not be simply render_args$envir (which defaults to parent.frame() in render()), because Shiny's input/output/session variables are not available in this environment. We have to create a new environment with the environment of Shiny's server function environment being its parent, and render_args$envir being its grandparent environment. All previous relevant cases #1162, #619, and #1124 have been tested. Also closes #1194.
- Loading branch information