powered by
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")
The code indicating the food you want to search for.
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.
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) # }
Run the code above in your browser using DataLab