Setting up API keys

Setting up Flourish Charts requires setting up a Flourish API key.

R users can store their Flourish API key in one of two places:

FLOURISH_API_KEY="..."

The flourish() function will recognize this variable, grabbing the API key without the end-user needing to specify every single time.

If you do not have an ~/.Renviron file, create one from your terminal by running touch ~/.Renviron && open ~/.Renviron.

Restart R after saving the variable for it to take effect.