backends | R Documentation |
The default backend is selected
based on the keyring_backend
option. See base::options()
.
This can be set to a character string, and then the
backend_string
class is used to create the default backend.
If this is not set, then the R_KEYRING_BACKEND
environment variable
is checked.
If this is not set, either, then the backend is selected automatically, based on the OS:
On Windows, the Windows Credential Store ("wincred"
) is used.
On macOS, Keychain services are selected ("macos"
).
Linux uses the Secret Service API ("secret_service"
),
and it also checks that the service is available. It is typically
only available on systems with a GUI.
If the file backend ("file"
) is available, it is selected.
On other operating systems, secrets are stored in environment
variables ("env"
).
default_backend(keyring = NULL)
keyring |
Character string, the name of the keyring to use,
or |
Most backends support multiple keyrings. For these the keyring is selected from:
the supplied keyring
argument (if not NULL
), or
the keyring_keyring
option.
You can change this by using options(keyring_keyring = "NEWVALUE")
If this is not set, the R_KEYRING_KEYRING
environment variable.
Change this value with Sys.setenv(R_KEYRING_KEYRING = "NEWVALUE")
,
either in your script or in your .Renviron
file.
See base::Startup for information about using .Renviron
Finally, if neither of these are set, the OS default keyring is used.
Usually the keyring is automatically unlocked when the user logs in.
The backend object itself.
backend_env, backend_file, backend_macos, backend_secret_service, backend_wincred
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.