Use check()
, test()
, assert()
, expect()
and need()
to validate classed objects from this package.
Check S3 class.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | check(x)
test(x)
## Default S3 method:
test(x)
expect(x, info = NULL, label = NULL)
## Default S3 method:
expect(x, info = NULL, label = paste(class(x), "S3 class"))
assert(x, collection = NULL, var.name = NULL)
## Default S3 method:
assert(x, collection = NULL, var.name = paste(class(x)[1], "S3 class"))
need(x, label = NULL)
## Default S3 method:
need(x, label = NULL)
|
x |
class object created by respective constructor function. |
info |
[ |
label |
[ |
collection |
[ |
var.name |
[ |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.