README.md

metabolighteR

Lifecycle: stable R build status codecov License DOI

CRAN total downloads

GitHub

R Interface to the Metabolights REST API

Installation

metabolighteR can be installed from CRAN using;

install.packages('metabolighteR')

Or the latest development version can be installed directly from GitHub using the remotes package

remotes::install_github('aberHRML/metabolighteR')

Creating an API Key

Some of the API methods (ie, accessing your private studies) require a personal API token. To generate a token you first need to register and then obtain an API Token from your Account Settings page.

This API Token is not required for the vast majority of the API calls for querying publicly available studies.

If you are adding the API Token to your .Renviron, you should use the following format;

NOTE: this is NOT recommended if you are using a shared workstation or a workstation where you cannot guarantee the secrecy of your API Token

MTBLS_API_KEY="<your-api-token-here>"

Then once you load the library; you can set the API Token as an option variable.

library(metabolighteR)

mtbls_key()


wilsontom/metabolighteR documentation built on Feb. 27, 2024, 7:58 p.m.