Description Usage Arguments Value See Also Examples
Checks to see if the object is an S4 object with a particular slot.
1 2 3 | assert_has_slot(x, severity = getOption("assertive.severity", "stop"))
has_slot(x, slotname, .xname = get_name_in_parent(x))
|
x |
Input to check. Intended to be an S4 object. |
severity |
How severe should the consequences of the assertion be?
Either |
slotname |
A string naming a slot to check for. |
.xname |
Not intended to be used directly. |
has_names
returns TRUE
if names
is
non-null.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.