Learn R Programming

rodham (version 0.1.1)

extract_emails: Extract emails contents

Description

Extract content of manually downloaded emails.

Usage

extract_emails(release, save.dir = getwd(), extractor, ...)

Arguments

release

Name of the batch of release of emails; see details.

save.dir

Directory where to save the extracted text defaults to getwd()

extractor

Full path to pdf extractor pdftotext, see details.

...

additional parameters to pass to pdftotext.

See Also

get_xpdf, download_emails

Examples

Run this code
# NOT RUN {
# download emails
download_emails("August") # August release

dir.create("emails_pdf") # dir to extract zip

unzip("August.zip", exdir = "./emails_pdf")

# create directory to store extracted contents
dir.create("emails_txt")

ext <- get_xpdf()

extarct_contents(emails = "HRC_Email_296", dest = "./emails_txt", extractor = ext)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab