datawrapper_auth: Set Datawrapper-API-Key to system environment

View source: R/datawrapper_auth.R

datawrapper_authR Documentation

Set Datawrapper-API-Key to system environment

Description

Adds Environment Key DW_KEY to your local .Renviron file to be available on Startup.

Usage

datawrapper_auth(api_key, overwrite = FALSE)

Arguments

api_key

Required. A character string, containing the API-Key.

overwrite

Optional. Should an existing key be overwritten? Defaults to FALSE.

Value

A Message in the command line.

Note

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.

Author(s)

Benedict Witzenberger

Examples


## Not run: datawrapper_auth(api_key = "1234ABC")

## Not run: datawrapper_auth(api_key = "1234ABC", overwrite = TRUE)


munichrocker/DatawRappr documentation built on March 20, 2024, 6:08 a.m.