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.


withr documentation built on May 29, 2024, 11:07 a.m.