test_that("download_wastd_users works", {
testthat::skip_if_not(wastd_works(), message = "WAStD offline or wrong auth")
x <- download_wastd_users()
testthat::expect_s3_class(x, "tbl_df")
testthat::expect_equivalent(
names(x),
c(
"pk",
"username",
"name",
"nickname",
"aliases",
"role",
"affiliation",
"email",
"phone",
"is_active",
"alive"
)
)
})
# usethis::use_r("download_wastd_users") # nolint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.