Learn R Programming

metabolighteR (version 0.1.3)

mtbls_key: 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

Run this code
# 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')
# }

Run the code above in your browser using DataLab