| interface_requirements | R Documentation |
Inspect or check a Go-like structural interface
interface_requirements(interface, inherited = TRUE)
interface_report(x, interface)
missing_requirements(x, interface)
implements(x, interface)
assert_implements(x, interface, arg = deparse(substitute(x)))
as_interface(x, interface)
interface |
An interface created by |
inherited |
Include inherited requirements from parent interfaces? |
x |
An object, or an S7 class/base class wrapper. |
arg |
Name to use in error messages. |
interface_requirements() returns a named list of
interface_requirement() objects. interface_report() and
missing_requirements() return data frames. implements() returns a single
logical value. assert_implements() and as_interface() return x,
unchanged.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.