Major Changes
-
get_label_nutrients
now errors if an FDC ID has no label nutrients, similar to pyfdc. -
set_api_key
can now retrieve an API key from a user's environment if it exists. -
A
get_label_nutrients
call now allows users to get label nutrients for a given FDC ID. -
get_nutrients
now returns serving information. -
Fixed issues with package documentation. See #1
-
Refactored to suit newer API specifications
-
Exported previously non exported key functions
Available functions
- set_api_key
- Sets a session api key
- key_signup
- A helper function to direct users to the api key signup page.
- get_api_key
- Retrieves the session api key from .Globalenv
- get_food_details
- Retrieves food details given a Food Data Central ID
- get_food_info
- Gets information from a search query
- get_nutrients
- Provides nutrients given a food data central ID
Available Classes
- FoodSearch
- Interfaces the Food Data central search endpoint
- FoodDetails
- interfaces the Food Data Central food details point