Description Usage Arguments Details Value Examples
Save the password for a given system.
1 2 |
key |
Character. The system for which you want to set up a password. |
password |
Character, to specify a password in plain text, or NULL to type it in at runtime. |
overwrite |
Character. Overwrite any existing password? "yes" to overwrite, "no" to fail, "ask" to prompt. |
ring |
Optional. Name of keyring. |
It is recommended to enter passwords interactively
using set_key("system_name")
.
Users can also use set_key("system_name", "your_password")
to enter passwords programmatically,
but entering passwords in plain text is not recommended.
Users could forget and save it as a script,
and either way it will show up in their .Rhistory
file.
Function includes checks for has_keyring
,
keyring_locked
, and has_key
.
If the key already exists, set_key
will either overwrite it,
fail, or prompt you, depending on the value of overwrite
.
NULL (invisibly)
1 2 3 4 | ## Not run:
set_key("snowflake")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.