Skip to content

Commit

Permalink
correctly revert original changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Nov 1, 2024
1 parent f2af153 commit 09753e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/block.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ block_exec = function(options) {
#' @noRd
eng_r = function(options) {
# eval chunks (in an empty envir if cache)
obj.before = ls(knit_global(), all.names = TRUE) # global objects before chunk
env = knit_global()
obj.before = ls(globalenv(), all.names = TRUE) # global objects before chunk

keep = options$fig.keep
keep.idx = NULL
Expand Down

0 comments on commit 09753e7

Please sign in to comment.