download_file: Download file from dataset onto the local file system.

Description Usage Arguments Value Examples

View source: R/download_file.R

Description

Download file from dataset onto the local file system.

Usage

1
download_file(owner_id, dataset_id, file_name, output)

Arguments

owner_id

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

dataset_id

Dataset unique identifier

file_name

File name, including file extension.

output

Local file path, where dataset file will be saved.

Value

Server response message.

Examples

1
2
3
4
5
## Not run: 
  dwapi::download_file('user', 'dataset',
   file_name = 'file.csv', output = tempfile(fileext = 'csv'))

## End(Not run)

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