request_foodb_compound_info: Request all the food information in FoodB

request_foodb_compound_infoR Documentation

Request all the food information in FoodB

Description

Request all the food information in FoodB

Usage

request_foodb_compound_info(
  url =
    c("https://raw.githubusercontent.com/jaspershen/databases/main/data/foodb_compound_info.rda",
    "https://foodb.ca/downloads", "https://foodb.ca/compounds"),
  sleep = 1,
  pages = 1:2838
)

Arguments

url

Default is "https://foodb.ca/downloads".

sleep

sleep default is 1 second.

pages

default is from 1:2838

Value

A data frame.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

x = request_foodb_compound_info()
head(x)

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