dot-report_api_warning: Report an API-call warning with full context

.report_api_warningR Documentation

Report an API-call warning with full context

Description

Mirrors .report_api_error() but for tryCatch(warning = ...) handlers. Emits, in order:

Usage

.report_api_warning(w, hint = NULL, args = list())

Arguments

w

warning condition (the w from ⁠function(w)⁠ in tryCatch).

hint

character. Same semantics as .report_api_error()'s hint. If NULL, defaults to "Request emitted a warning".

args

optional named list of caller arguments to dump.

Details

  1. A timestamped friendly hint (brace-interpolated against the caller env),

  2. A dump of the function call's arguments,

  3. The actual warning message (conditionMessage(w)).

Value

Invisibly NULL. Called for its side effects.


wehoop documentation built on Aug. 25, 2026, 1:06 a.m.