append_record_to_stream: Append a record, consisting of a list of depth one, to a...

Description Usage Arguments Value Examples

Description

Append a record, consisting of a list of depth one, to a stream. The list must consist of atomic vectors of length one. If the data.world API returns an HTTP status of 429 (Too Many Requests), this function uses RETRY to retry the request.

Usage

1
2
append_record_to_stream(owner_id, dataset_id, stream_id, record,
  retry_times = 3, retry_quiet = FALSE)

Arguments

owner_id

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

dataset_id

Dataset unique identifier

stream_id

Stream unique identifier as defined by the user the first time the stream was used. Only lower case letters, numbers and dashes are allowed.

record

the record list

retry_times

the number of times to retry the request

retry_quiet

whether to suppress diagnostic messages during retries

Value

Server response message.

Examples

1
2
3
4
5
6
7
## Not run: 
  record <- list(ID=1, Value='One')
  dwapi::append_record_to_stream(owner_id = 'user',
    dataset_id = 'dataset', stream_id = 'mystream',
    record)

## End(Not run)

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