Description Usage Arguments Value Examples
Download SHHS data
1 2 3 | biostat_download_shhs(token = nsrr::nsrr_token(),
out_dir = system.file("extdata", package = "biostatmethods"),
overwrite = FALSE)
|
token |
Token for 'NSRR' data resource, to pass to |
out_dir |
Directory to download the file |
overwrite |
Should the file be overwritten if exists already? |
A logical if the data was downloaded
1 2 3 4 5 6 7 | token = nsrr::nsrr_token()
res = biostat_download_shhs(token = "", overwrite = TRUE)
testthat::expect_false(res)
if (!is.null(token)) {
res = biostat_download_shhs()
testthat::expect_true(res)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.