Learn R Programming

omophub (version 1.1.0)

set_api_key: Set OMOPHub API Key

Description

Stores the OMOPHub API key in the specified location.

Usage

set_api_key(key, store = c("env", "keyring"))

Value

Invisibly returns TRUE on success.

Arguments

key

The API key to store.

store

Where to store the key. One of:

  • "env": Set as environment variable for current session (default)

  • "keyring": Store securely in system keyring (requires keyring package)

Examples

Run this code
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