View source: R/dw_create_folder.R
dw_create_folder | R Documentation |
maturing Creates a new folder
dw_create_folder(
name = "",
organization_id = NULL,
parent_id = NULL,
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
## Not run:
dw_create_folder(name = "New Folder")
## End(Not run) # uses the preset API-key in the .Renviron-file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.