Translate integer exit codes generated by the NNG library. All package functions return an integer exit code on error rather than the expected return value. These are classed 'errorValue' and may be checked by is_error_value.

nng_error(xc)

Arguments

xc

integer exit code to translate.

Value

A character vector.

Examples

nng_error(1L)
#> [1] "Interrupted"