Fetch Hillary Rodham Clinton's Emails

Fetch and process Hillary Rodham Clinton's "personal" emails.


Travis-CI Build Status AppVeyor Build Status Coverage Status codecov CRAN CRAN_Status_Badge

benghazi

Fetch and process Hillary Rodham Clinton's personal emails. See site for more details.

Installation

You can install rodham from CRAN or Github with:

# from CRAN
install.packages("rodham")
 
# dev version
devtools::install_github("JohnCoene/rodham")

Example

Data

# load emails
data(emails)
 
# build graph
edges <- edges_emails(emails)
g <- igraph::graph.data.frame(edges)
 
# plot 
plot(g)

Download contents

See "how-to" vignette for more examples!

ext <- get_xpdf() # get pdf extractor
 
# get emails related to Benghazi released in December
emails_bengh <- get_emails(release = "Benghazi", extractor = ext)
 
# load contents
hrc_emails <- load_emails(emails_bengh)
 
print(hrc_emails)
#> 4366 emails
 
# get emails content
cont <- get_content(hrc_emails)
 
# clean emails
cont <- clean_content(cont)
 
####
# Chart in header
####
 
# devtools::install_github("JohnCoene/echarts")
library(echarts)
library(dplyr)
 
get_com(hrc_emails) %>%
  filter(from != "") %>%
  count(from) %>%
  echart(from) %>%
  ecloud(n) %>%
  etitle(text = "Email senders", subtext = "Benghazi release") %>%
  etheme("helianthus")

Resources

News

rodham 0.1.1

Additions

  • tidy_emails - returns tibble of emails content
  • get_id - returns emails document ids

Bug fixes

  • correct names returned by load_emails

rodham 0.1.0

Additions

  • hrc_names list of names from WSJ
  • clean_content function to clean comments and other less useful lines added.
  • load_emails function to load all downloaded emails added; returns object of class rodham.
  • download_emails function added to download specific release.
  • extract_emails function to parse downloaded emails (download_emails).
  • get_* get methods to retrieve metadata and content from emails (rodham class).

Bug fixes

  • get_xpdf now returns the correct path.
  • get_xpdf tested on Windows and Ubuntu.

rodham 0.0.2

Bug fixes

  • Fixed get_xpdf function: now correctly returns path to extractor

Minor changes

  • Changed get_xpdf default dest argument to getwd()
  • Checks for extractor location as it cannot be used in D: drive on windows (must be in C:)

rodham 0.0.2

  • Added get_xpdf to download and unzip xpdf.
  • Added get_email to download actual email contents
  • Removed useless nodes_emails FUN
  • Added "how-to" vignette

rodham 0.0.1

  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rodham")

0.1.1 by John Coene, 9 months ago


https://github.com/JohnCoene/rodham


Report a bug at https://github.com/JohnCoene/rodham/issues


Browse source code at https://github.com/cran/rodham


Authors: John Coene [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports jsonlite, splitstackshape, plyr, stringr, tibble, methods, utils

Suggests testthat, covr, knitr, rmarkdown, igraph, lintr


See at CRAN