set_secret | R Documentation |
Some services require credentials to access data. This function uses keyring to safely store those credentials on your computer.
set_secret(name, secret = NULL)
get_secret(name)
name |
Name of the secret to set or get as a character (e.g.
|
secret |
Optionally a character string with the secret, alternatively the system will prompt the user. |
When working with a cluster it might be advantageous to use a specific
keyring, this can be done by setting the keyring_backend
option in R.
The package uses the option getRad.key_prefix
as a prefix to all keys
stored. If you want to use multiple keys for the same api you can manipulate
this option.
set_secret()
returns TRUE
when a secret has successfully been
set. get_secret()
returns the secret as a character string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.