View source: R/datawrapper_auth.R
datawrapper_auth | R Documentation |
Adds Environment Key DW_KEY
to your local .Renviron
file to be available on Startup.
datawrapper_auth(api_key, overwrite = FALSE)
api_key |
Required. A character string, containing the API-Key. |
overwrite |
Optional. Should an existing key be overwritten? Defaults to FALSE. |
A Message in the command line.
This is a very simple function that adds the API-key to the .Renviron-file in the user's home folder. If a key already exists and the user requests to, it will get replaced.
Benedict Witzenberger
## Not run: datawrapper_auth(api_key = "1234ABC")
## Not run: datawrapper_auth(api_key = "1234ABC", overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.