# just for testing; never build objects like this by hand
good_obj <- psItemContent(items = "I am an item")
bad_obj <- structure(
.Data = 1L, # must be character
class = c("psItemContentText", "psItemContent", "character")
)
validate_S3(good_obj)
validate_S3(bad_obj)
check_S3(good_obj)
check_S3(bad_obj)
test_S3(good_obj)
test_S3(bad_obj)
expect_S3(good_obj)
# expect_S3(bad_obj) # this errors out
assert_S3(good_obj)
# assert_S3(bad_obj) # this errors out
need_S3(good_obj)
need_S3(bad_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.