Skip to contents

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()

Value

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

Details

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