set_apikey: Set User API key

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Sets user's API key

Usage

1
set_apikey(api_key = NULL)

Arguments

api_key

A character string as provided by the USDA Nutrient Database.

Value

NULL Saves user api_key

Examples

1
2
3
4
## Not run: 
set_apikey(api_key="my_key_here")

## End(Not run)

Nelson-Gon/usdandbr documentation built on Jan. 22, 2020, 4:07 a.m.