File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 41
41
* ` local_tempfile() ` gains a lines argument so, if desired, you can pre-fill
42
42
the temporary file with some data.
43
43
44
- * ` defer() ` all ` local_ ` functions now work when run inside of a
44
+ * ` defer() ` and all ` local_*() ` functions now work when run inside of a
45
45
` .Rmd ` . Note that they are executed at the very end of the session,
46
46
after the output has been collected, so you won't see any printed
47
47
side-effects (#187 ). The same applies with interactive knitting,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ setup_handlers <- function(envir) {
45
45
if (is_interactive()) {
46
46
message(
47
47
sprintf(" Setting deferred event(s) on the global environment.\n " ),
48
- " * Will be run automatically when session ends\n " ,
48
+ " * Will be run automatically when session ends. \n " ,
49
49
" * Execute (and clear) with `withr::deferred_run()`.\n " ,
50
50
" * Clear (without executing) with `withr::deferred_clear()`."
51
51
)
@@ -65,6 +65,7 @@ setup_handlers <- function(envir) {
65
65
in_knitr <- function (envir ) {
66
66
knitr_in_progress() && identical(knitr :: knit_global(), envir )
67
67
}
68
+
68
69
is_top_level_global_env <- function (envir ) {
69
70
if (! identical(envir , globalenv())) {
70
71
return (FALSE )
You can’t perform that action at this time.
0 commit comments