test_that("use", {
if (!is_on_travis())
# This test will break if www.cbs.dtu.dk is down,
# here I assume it is usually up :-)
expect_silent(check_netmhcpan_data_url())
})
test_that("be verbose", {
if (!is_on_travis())
expect_message(
check_netmhcpan_data_url(verbose = TRUE),
"netmhcpan_data_url"
)
})
test_that("error message for invalid URL", {
expect_error(
check_netmhcpan_data_url(netmhcpan_data_url = "does_not_exist"),
"does_not_exist"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.