View source: R/check_credentials.R
check_credentials | R Documentation |
Check if credentials are saved in the user profile for the service.
check_credentials(x)
assert_credentials(
x,
.var.name = checkmate::vname(x),
comment = NULL,
add = NULL
)
x |
[ |
.var.name |
[ |
comment |
[ |
add |
[ |
Depending on the function prefix:
If the check is successful, the function
assert_credentials
return x
invisibly, whereas
check_credentials
return TRUE
.
If the check is not successful,
assert_credentials
throws an error message and
check_credentials
returns a string with the error message.
check_credentials(x = "PJS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.