R/export.R

Defines functions get_edge_table get_node_table

#' @export
get_node_table <- function() {
  con <- get_cache_db_connection()
  on.exit(dbDisconnect(con))
  collect(tbl(con, "nodes"))
}

# may return duplicated edges. call clean_cache ahead of
# time to get nicer data
#' @export
get_edge_table <- function() {
  con <- get_cache_db_connection()
  on.exit(dbDisconnect(con))

  collect(tbl(con, "edges"))
}
alexpghayes/twittercache documentation built on Oct. 10, 2020, 8:36 p.m.