Learn R Programming

rtweet (version 1.2.1)

stream_tweets2: A more robust version of stream_tweets

Description

[Deprecated] Please use stream_tweets() instead.

Usage

stream_tweets2(..., dir = NULL, append = FALSE)

Value

Returns data as expected using original search_tweets function.

Arguments

dir

Name of directory in which json files should be written. The default, NULL, will create a timestamped "stream" folder in the current working directory. If a dir name is provided that does not already exist, one will be created.

append

Logical indicating whether to append or overwrite file_name if the file already exists. Defaults to FALSE, meaning this function will overwrite the preexisting file_name (in other words, it will delete any old file with the same name as file_name) meaning the data will be added as new lines to file if pre-existing.