file_create_request: Create object for adding a dataset file.

Description Usage Arguments Value See Also Examples

Description

Create object for adding a dataset file.

Usage

1
file_create_request(file_name, url, 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

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_request.

See Also

create_dataset, replace_dataset

Examples

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

Example output



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