dw_create_folder( name = "", organization_id = "", parent_id = "", api_key = "environment" )
name | Required. Specify the name for the newly created folder. |
---|---|
organization_id | Optional. ID of organization if creating a folder for a organization that you're working with. Defaults to user. |
parent_id | Optional. ID of parent folder if creating a subfolder. |
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 |
Returns a success message
This function builds a body for a API-call to the Datawrapper-API, and creates a new folder for a user or a team.
Benedict Witzenberger
if (FALSE) { dw_create_folder(name = "New Folder") } # uses the preset API-key in the .Renviron-file