unimplementedWarning
Functions for Handling Unimplemented Functions and Arguments
Description
These functions are wrappers around warning and stop to
be used in cases where functions or arguments are not yet implemented.
Usage
unimplementedWarning(argument, message, value)
unimplementedStop(argument, message, value)
Arguments
argument | a character string specifying the name of the unimplemented argument |
message | a character string specifying an optional message to be displayed |
value | a character string specifyingthe specific value of an argument that is unimplemented |
Details
unimplementedWarning and unimplementedStop differ only in that
the former provides a warning and the latter an error.
If the argument argument is not supplied, implies the entire function
is unimplemented.
The value argument is used alongside the argument argument if
only specific value(s) of the argument are not implemented.
The message argument is appended to the message that the function or
argument is unimplemented. This is typically used for providing information
about the default or fallback behavior to the user.
Value
The character string that contains the unimplemented message, which is invisible.
Side Effects
See Also
warning,
link{stop},
link{suppressWarnings}.
Examples
## Not run:
# for unimplemented functions
unimplementedStop()
unimplementedWarning()
unimplementedStop(message="use xyz function instead")
unimplementedWarning(message="no output will be generated")
# for unimplemented arguments
unimplementedStop("xyz")
unimplementedWarning("plot")
unimplementedStop(argument="type", value="\"abc\"")
unimplementedWarning("plot", value="TRUE", message="no plots will be generated")
## End(Not run)