context("cbs")
test_that("cbs bulk gets current players", {
r <- cbs_bulk()
expect_is(r, 'data.frame')
})
test_that("cbs scrape returns one player correctly", {
p <- cbs(1894641)
expect_is(p, 'data.frame')
p <- cbs(1894642)
expect_is(p, 'data.frame')
})
test_that("cbs scrape errors on known bad player", {
expect_error(cbs(1894653))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.