Create an abstract representation of the Twitter friendship graph
Source:R/appr.R
neocache_graph.RdSignifies that aPPR should query the Twitter friendship graph via
neocache.
Arguments
- cache_name
The name of the
neocacheto use to save data into.- retryonratelimit
If
TRUE, and a rate limit is exhausted, will wait until it refreshes. Most Twitter rate limits refresh every 15 minutes. IfFALSE, and the rate limit is exceeded, the function will terminate early with a warning; you'll still get back all results received up to that point. The default value,NULL, consults the optionrtweet.retryonratelimitso that you can globally set it toTRUE, if desired.If you expect a query to take hours or days to perform, you should not rely soley on
retryonratelimitbecause it does not handle other common failure modes like temporarily losing your internet connection.
Examples
if (FALSE) {
test_ids <- c("780429268866052096", "1191642560")
graph <- neocache_graph()
check(graph, test_ids)
node_degrees(graph, test_ids)
neighborhood(graph, test_ids[1])
}