add_file_by_source: Add a single file to a dataset.

Description Usage Arguments Value Examples

View source: R/add_files_by_source.R

Description

Add a single file to a dataset.

Usage

1
add_file_by_source(owner_id, dataset_id, name, url)

Arguments

owner_id

User name and unique identifier of the creator of a dataset or project

dataset_id

Dataset unique identifier

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 of file.

Value

Object of type success_message.

Examples

1
2
3
4
5
## Not run: 
  dwapi::add_file_by_source(dataset = 'user/dataset',
    name = 'file.csv', url = 'https://data.world/some_file.csv')

## End(Not run)

datadotworld/dwapi-r documentation built on July 3, 2021, 3:40 a.m.