Skip to contents

This function provides a wrapper around the base warning function, adding flexibility to warnings by setting call. to FALSE automatically. This modification means that the function call is not included in the warning message, streamlining the output for users.

Usage

warningp(...)

Arguments

...

Arguments passed on to warning.

Value

No return value, this function issues a warning.

See also

Examples

# \donttest{
try(warningp(
    "This is a custom warning message without the call."
), silent = TRUE)
#> Warning: This is a custom warning message without the call.
# }