powered by
Stores the OMOPHub API key in the specified location.
set_api_key(key, store = c("env", "keyring"))
Invisibly returns TRUE on success.
TRUE
The API key to store.
Where to store the key. One of:
"env": Set as environment variable for current session (default)
"env"
"keyring": Store securely in system keyring (requires keyring package)
"keyring"
keyring
if (FALSE) { # Store in environment (current session only) set_api_key("your_api_key") # Store securely in keyring (persistent) set_api_key("your_api_key", store = "keyring") }
Run the code above in your browser using DataLab