test_that("Data is loaded", {
expect_equal(
is.data.frame(
readAPI(
"https://index.simulationhockey.com/api/v1/players/ratings")
),
TRUE
)
expect_equal(
length(
playerLoader(0)
),
2
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.