test_that("distro() does not error regardless of platform", {
sysname <- tolower(Sys.info()[["sysname"]])
if (sysname == "linux") {
expect_is(distro(), "list")
} else if (sysname %in% c("darwin", "windows")) {
expect_null(distro())
} else {
expect_error(distro(), NA)
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.