dw_delete_chart: Delete a Datawrapper chart

View source: R/dw_delete_chart.R

dw_delete_chartR Documentation

Delete a Datawrapper chart

Description

Deletes a chart on Datawrapper.

Usage

dw_delete_chart(chart_id, api_key = "environment")

Arguments

chart_id

Required. A Datawrapper-chart-id as character string, usually a five character combination of digits and letters, e.g. "aBcDe". Or a dw_chart-object.

api_key

Optional. A Datawrapper-API-key as character string. Defaults to "environment" - tries to automatically retrieve the key that's stored in the .Reviron-file by datawrapper_auth.

Value

A message that specifies, if the deletion was successful.

Note

This function deletes a chart in Datawrapper.

Author(s)

Benedict Witzenberger

Examples


## Not run: dw_delete_chart("aBcDE") # uses the preset key in the .Renviron-file
## Not run: dw_delete_chart(chart_id = "a1B2Cd", api_key = "1234ABCD") # uses the specified key


munichrocker/DatawRappr documentation built on Oct. 18, 2024, 2:46 p.m.