From be1d398e5f8ac190ada10c0c08f92c0db0541c94 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Thu, 7 Dec 2023 14:15:01 -0800 Subject: [PATCH] Fix render() environment --- R/render.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/render.R b/R/render.R index a82343a7..70e5b3c6 100644 --- a/R/render.R +++ b/R/render.R @@ -167,6 +167,7 @@ render <- function(yaml_fn = "_bookdown.yml", suppressWarnings( render_book(index_fn, config_file = tmp_yaml_fn, + envir = parent.frame(n = 2L), ...) ) ) @@ -174,6 +175,7 @@ render <- function(yaml_fn = "_bookdown.yml", suppressMessages( render_book(index_fn, config_file = tmp_yaml_fn, + envir = parent.frame(n = 2L), ...) ) }