mtbls_key: Set API Token

View source: R/mtbls_key.R

mtbls_keyR Documentation

Set API Token

Description

Set your Metabolights API Token as global option. If MTBLS_API_KEY is set in .Renviron then this variable will be passed directly to the MTBLS_API_KEY option. If no MTBLS_API_KEY is set in .Renviron, then the API Token must be passed as an input in the set_api_token function

Usage

mtbls_key(API_KEY = NULL)

Arguments

API_KEY

a character string of your Metabolights API Token (Default is NULL)

Examples

## Not run: 

# If API Token is set in `.Renviron`

mtbls_key()

# If API Token is not set in `.Renviron`

mtbls_key('XXXX-0000-XXXX-0000')

## End(Not run)

aberHRML/metabolighteR documentation built on March 1, 2024, 7:31 a.m.