request_bigg_version: Request BiGG Database Version

View source: R/5_BIGG.R

request_bigg_versionR Documentation

Request BiGG Database Version

Description

This function retrieves the current version of the BiGG database from the BiGG API.

Usage

request_bigg_version(url = "http://bigg.ucsd.edu/api/v2/database_version")

Arguments

url

A string specifying the URL of the BiGG database version endpoint. Defaults to '"http://bigg.ucsd.edu/api/v2/database_version"'.

Details

The function makes an HTTP request to the BiGG database version endpoint using 'curl'. It parses the response to extract the version information, returning it as a data frame with two columns: 'name' and 'value'. If the request fails, the function returns 'NULL'.

Value

A data frame containing the version information of the BiGG database with two columns: - 'name': The type of version information (e.g., "bigg_models_version"). - 'value': The corresponding value of the version information.

Examples

## Not run: 
# Retrieve the current version of the BiGG database
version_info <- request_bigg_version()

# Use a custom API URL
version_info <- request_bigg_version(url = "http://bigg.ucsd.edu/api/v2/custom_endpoint")

## End(Not run)


tidymass/massdatabase documentation built on Oct. 18, 2024, 3:56 p.m.