Retrieves the Datawrapper-API-key from the DW_KEY environment variable if it exists.

dw_get_api_key()

Value

The API-key as a character string

Details

You can use datawrapper_auth() to store your API key into your local .Renviron file.

Note

This is a helper function, that shouldn't be of any use outside of this package.

Author

Benedict Witzenberger

Examples

if (FALSE) dw_get_api_key()