context("Basic API functionality")
test_that(
"send an echo request", {
response <- rtm_req("rtm.test.echo", auth = FALSE, moo = "bar")
expect_equal(response[["moo"]], "bar")
})
test_that(
"send an improper request", {
expect_error(rtm_req("xyz", auth = FALSE), regexp = "RTM error 112")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.