NEWS


graphTweets 0.5.3 (2020-01-08)

Moving rtweet to Suggests.

graphTweets 0.5.2 (2019-07-10)

graphTweets 0.5.1 (2019-02-14)

Better use of tidyeval to improve usage of the package in functions.

graphTweets 0.5.0 (2018-08-25)

The origin gt_edges functions, first part of the package in 2014, was extracting @tagged users from tweets' text with convoluted regular expressions: it is no longer necessary as rtweet now returns mentions_screen_name, hence the aforementioned changes.

graphTweets 0.4.3 (2018-08-07)

graphTweets 0.4.2 (2018-07-15)

Removed splitstackshape dependency ahead of its archival; now uses tidyr.

graphTweets 0.4.1 (2018-07-08)

graphTweets 0.4.0 (2018-03-31)

Major release: overhaul to 1) make computations much faster, 2) make the whole package more tidyverse friendly and 3) switch to rtweet as main source.

Performance

library(graphTweets)
library(rtweet)

token <- create_token("APP", "xxxXXxxxx", "xXXXxxXX")
tweets <- search_tweets("#rstats", token = token)

rbenchmark::benchmark(
  "v3.2" = {
    edges <- getEdges(as.data.frame(tweets), "screen_name", "text")
    g <- igraph::graph.data.frame(edges, TRUE)
  },
  "v4" = {
    tweets %>% 
      gt_edges_() %>%  
      gt_graph() -> g
  }
)

  test replications elapsed relative user.self sys.self user.child sys.child
1 v3.2          100    6.55    1.492      6.45     0.06         NA        NA
2   v4          100    4.39    1.000      4.33     0.05         NA        NA

graphTweets 0.3.2 (2016-05-08)

graphTweets 0.3 (2016-03-11)