Skip to content

This function securely stores an authentication token for a specific dataset using the keyring package. If the keyring is not accessible (e.g., in a virtual machine or unsupported environment), it prints a message and does not attempt to store the token.

Usage

bdpe_store_token(base_name, token)

Arguments

base_name

The name of the dataset.

token

The authentication token for the dataset.

Value

No return value. If the keyring is available, the token is securely stored. Otherwise, a message is displayed.

Examples

bdpe_store_token("education_dataset", "your-token-here")
#> Token successfully stored for dataset: education_dataset