Is the object an error value generated by NNG. All returned integer error codes are classed as 'errorValue' to be distinguishable from integer message values.
is_error_value(x)
an object.
Logical value TRUE if 'x' is of class 'errorValue', FALSE otherwise.
A warning is generated every time an 'errorValue' is returned.
nano_init
may be used to set the value of option 'warn' and
automatically reverts it upon package unload. The default, applied by
calling nano_init()
with no arguments, is 'immediate', which prints
warnings as they occur.
Further options for warnings may be set manually via options
:
warning.expression - an R code expression to be called if a warning is generated, replacing the standard message. If non-null it is called irrespective of the value of option warn.
warning.length - sets the truncation limit in bytes for error and warning messages. A non-negative integer, with allowed values 100...8170, default 1000.
nwarnings - the limit for the number of warnings kept when warn = 0, default 50. This will discard messages if called whilst they are being collected. If you increase this limit, be aware that the current implementation pre-allocates the equivalent of a named list for them.
# NOT RUN {
is_error_value(1L)
# }
Run the code above in your browser using DataLab