View source: R/argument_check.R
argument_check | R Documentation |
A function for streamlining the argument-checking process. It is not exported.
argument_check(x, name, type, len_check = FALSE, len_req = 1)
x |
an argument. |
name |
the name of the argument. |
type |
a string indicating what type the argument should be. |
len_check |
a logical scalar indicating whether the argument should be checked for length. |
len_req |
a numeric scalar indicating the required length for the argument. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.