file_create_or_update_request: Create object for adding/updating a dataset file.

Description Usage Arguments Value See Also Examples

Description

Create object for adding/updating a dataset file.

Usage

1
2
file_create_or_update_request(file_name, url = NULL, description = NULL,
  labels = NULL)

Arguments

file_name

File name including the file extension. If a file by that name already exists in the dataset, the file will be updated/overwritten.

url

(optional) Source URL for file.

description

(optional) File description.

labels

(optional) List of file labels ("raw data", "documentation", "visualization", "clean data", "script" or "report").

Value

Object of type file_create_or_update_request.

See Also

file_batch_update_request, update_dataset

Examples

1
2
3
4
5
file_create_or_update_req <- dwapi::file_create_or_update_request(
  file_name = "file.csv",
  url = "https://data.world/file.csv",
  description = "My updated CSV description",
  labels = list("raw data", "clean data"))

dwapi documentation built on May 1, 2019, 11:18 p.m.