Description Usage Arguments Value Examples
NSRR Token
1 2 3 4 5 6 7 | nsrr_token(token = NULL)
nsrr_have_token(token = NULL)
nsrr_auth(token = NULL)
nsrr_authenticated(token = NULL)
|
token |
Token for NSRR resources. Found at https://sleepdata.org/token |
A character vector or NULL
1 2 3 4 5 6 7 8 9 | is.null(nsrr_token())
if (!is.null(nsrr_token())) {
res = nsrr_auth()
res$authenticated
}
bad_res = nsrr_auth("")
bad_res$authenticated
nsrr_have_token()
nsrr_authenticated()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.