request_bigg_version | R Documentation |
This function retrieves the current version of the BiGG database from the BiGG API.
request_bigg_version(url = "http://bigg.ucsd.edu/api/v2/database_version")
url |
A string specifying the URL of the BiGG database version endpoint. Defaults to '"http://bigg.ucsd.edu/api/v2/database_version"'. |
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'.
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.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.