Retrieves credentials (username and password) from os credential store using keyring package.
Usage
utils_database_get_or_set_creds(dbname)
Arguments
- dbname
Name of database to store/retrieve credentials for (string)
Value
Invisibly returns list of username and password
Examples
if (FALSE) {
creds <- easydb::util_get_database_creds(
service = "R-keyring-test-service",
username = "donaldduck"
)
creds$username
creds$password
}