stream_tweets2()function for more robust streaming method. Streams JSON files to directory and reconnects following premature disruptions.
get_followers()now accept vectors of length > 1.
stream_data(), designed to parse files that cannot wholely fit into memory.
stream_data()can now work in parallel as well.
post_status()function has been fixed and can now be used to upload media.
mentions_screen_namemay consist of 4 screen names).
flatten()function. Exporting functions such as
save_as_csvwill apply flatten by default.
bbox_coordsbounding box. The first two come in pairs of coords (a list column) and bbox_coords comes with 8 values (longX4 latX4). This should allow users to maximize returns on geo-location data.
post_. This was done to clearly distinguish write functions from retrieval functions.
ts_plot()function is now more robust with more adaptive characteristics for variations in the number of filters, the method of distiguishing lines, the position of the legend, and the aesthetics of the themes.
ts_filter()function which allows users to convert Twitter data into a time series-like data frame. Users may also provide filtering rules with which
ts_filter()will subset the data as it converts it to multiple time series, which it then outputs as a long-form (tidy) data frame.
retryonratelimitargument to allow for searches requesting more than 18,000 tweets. This automates what was previously possible through use of
ts_plotto enable different filtered time series and an aesthetic overhaul of the plot function as well.
as_doubleargument to provide flexibility in handling id variables (as_double provides performance boost but can create problems when printing and saving, depending on format). By default functions will return IDs as character vectors.
clean_tweetsargument provided to allow user more control over encoding and handling of non-ascii characters.
search_usersand implemented several improvements to
token, rtweet will find it.
include_retweetsarg added to
user_idclass changed to double when parsed. double is significantly faster and consumes less space. it’s also capable of handling the length of id scalars, so the only downside is truncated printing.
stream_tweets()function. By default, the streaming query argument,
q, is now set to an empty string,
q = "", which returns a random sample of all Tweets (pretty cool, right?).
post_tweet()function. Users can now post tweets from their R console.
lookup_statuses() function, which is the counterpart to
lookup_users(). Supply a vector of status IDs and return tweet data for each status.
lookup_statuses() is particularly powerful when combined with other methods designed to collect older Tweets. Early experiments with doing this all through R have turned out surprisingly well, but packaging it in a way that makes it easy to do on other machines is unlikely to happen in the short term.
Removed dplyr dependencies. Everyone should install and use
dplyr, but for sake of parsimony, it’s been removed from rtweet.
Continued development of S4 classes and methods. Given removal of dplyr dependencies, I’ve started to integrate print/show methods that will limit the number of rows (and width of columns) when printed. Given the amount of data returned in a relatively short period of time, printing entire data frames quickly becomes headache-inducing.
Stability improvements including integration with Travis CI and code analysis via codecov. Token encryption method also means API testing conducted on multiple machines and systems.
search_users()function! Search for users by keyword, name, or interest and return data on the first 1000 hits.
lookup_users() now consists of users data and contains tweets data attribute.
Updated testthat tests
Since previous CRAN release, numerous new features and improvements to functions returning tweets, user data, and ids.
Search function now optimized to return more tweets per search.
Numerous improvements to stability, error checks, and namespace management.
get_followers. Returns list with value (
next_cursor) used for next page of results. When this value is 0, all results have been returned.
get_followers now return the list of user ids as a tibble data table, which makes the print out much cleaner.
Improved scrolling methods such that
get_timeline should return a lot more now
parser function to return status (tweets) AND user (users) data frames when available. As a result, the parsed output for some functions now comes as a list containing two data frames.
get_timeline function that returns tweets from selected user
Added vignettes covering tokens and search tweets
Fixed issue with
count argument in search and user functions
Fixed parsing issue for return objects with omitted variables
clean_tweets convenience function for text analysis
More examples included in documentation.
recode_error argument to
get_friends function. This is especially useful for tracking networks over time.
ROAuth methods/objects to increase compatibility with
Improved token checking procedures.
There are now two stable parse (convert json obj to data frame) types. For user objects (e.g., output of
lookup_users), there is
parse_user. For tweet objects (e.g., output of
stream_tweets), there is
New parse functions are now exported, so they should available for use with compatible Twitter packages or user-defined API request operations.