update_local_tweets: Update tweets

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Update tweets saved to disk.

Usage

1
update_local_tweets(users, file, n = 3200)

Arguments

users

character.

file

character.

n

integer, maximum number of tweets to go back chronologically from the latest.

Details

This function loads existing tweets from disk, downloads newer tweets, appends to the data frame, and overwrites the original file with the appended data frame, and returns the full data frame.

Value

a data frame, and side effect of appending to the data frame saved in file

Examples

1
## Not run: update_local_tweets("PicardTips", myfile)

leonawicz/trekdata documentation built on Nov. 21, 2020, 11:19 a.m.