check_messages: Propagate stored messages as R conditions

View source: R/messages.R

check_messagesR Documentation

Propagate stored messages as R conditions

Description

Inspects the internal message store, issues any recorded warnings via base::warning(), clears them, then raises any recorded error via base::stop() and clears it. This function is called automatically by every R wrapper function immediately after invoking a C++ routine, matching the pattern used by the terra package.

Usage

check_messages()

Details

Calling this function when the store is empty is a no-op.

Value

Invisible NULL (unless an error is stored, in which case it throws).


xbioclim documentation built on Oct. 5, 2026, 5:08 p.m.