Description Usage Arguments Value
This function wraps around stop
and str_wrap
from the
stringr
-package, and is a minor helper with regard to
including detailed error-messages in the code without to much fuzz.
It's also possible to get a quoted result.
1 2 3 |
... |
A collection of vectors or lists containing the stuff
that first will be inserted into |
.argument |
The name(s) of the argument(s) that triggered the
error. The default value for this argument is |
n |
A non-negative integer that select which function to
report the error for. The default value |
fun_stack |
Logical value, default |
quoted |
Logical value, default |
width |
The value to be given to the |
indent |
The value to be given to the |
exdent |
The value to be given to the |
call. |
The value to be given to the |
domain |
The value to be given to the |
The effect of this function will be that the information
given to the dotsMethods
-argument will be presented by
means of str_wrap
and stop
, with variations
depending on the values given to the other arguments. Note
that nothing will be done if no arguments are given to
...
. If the function is used in the global workspace
(happens under the development phase when writing a new
function), then an adjusted message will be given with regard
to the effect of the arguments fun_stack
and n
.
The argument quoted
can be used to return a quoted
expression of the error, which might be useful if one would
like to figure out if several errors was triggered by faulty
arguments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.