global_defer: Defer expression globally

View source: R/defer.R

global_deferR Documentation

Defer expression globally

Description

This function is mostly internal. It is exported to be called in standalone defer() implementations to defer expressions from the global environment.

Usage

global_defer(expr, priority = c("first", "last"))

Arguments

expr

⁠[expression]⁠
An expression to be evaluated.

priority

⁠[character(1)]⁠
Specify whether this handler should be executed "first" or "last", relative to any other registered handlers on this environment.


jimhester/withr documentation built on Nov. 2, 2024, 12:58 a.m.