get_all_nutrient_info | R Documentation |
Makes queries to the Canadian Nutrient APIs to get all available nutrient information about a particular food.
get_all_nutrient_info(foodCode, apiKey = NULL, lang = "en")
foodCode |
The code indicating the food you want to search for. |
apiKey |
Key to access the API. Can be retrieved from https://hc-sc.api.canada.ca/en/detail?api=cnf#!/Nutrient/get_nutrientamount. If none is provided, the system environment variables will be checked. |
lang |
The language to return results in, can be either 'en' or 'fr'. |
A tibble containing all available nutrient information about the food code.
## Not run: get_all_nutrient_info(foodCode = 45) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.