Skip to content

Commit

Permalink
Fix render() environment
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Dec 7, 2023
1 parent 8cd7c87 commit be1d398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,15 @@ render <- function(yaml_fn = "_bookdown.yml",
suppressWarnings(
render_book(index_fn,
config_file = tmp_yaml_fn,
envir = parent.frame(n = 2L),
...)
)
)
}else{
suppressMessages(
render_book(index_fn,
config_file = tmp_yaml_fn,
envir = parent.frame(n = 2L),
...)
)
}
Expand Down

0 comments on commit be1d398

Please sign in to comment.