mtbls_key: Set API Token

Description Usage Arguments Examples

View source: R/mtbls_key.R

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

1
mtbls_key(API_KEY = NULL)

Arguments

API_KEY

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

metabolighteR documentation built on Feb. 10, 2022, 1:09 a.m.