muRL: Mailmerge using R, LateX, and the Web
Ryan T. Moore and Andrew Reeves
Available as a CRAN package
muRL is an R package that provides mailmerge methods for reading spreadsheets of addresses and other relevant information, creating standardized but customizable letters, and mapping US ZIP codes, including the locations of recipients. It provides a method for parsing and processing html code from online job postings of the American Political Science Association (APSA eJobs). The many options associated with this functionality are described in detail in the muRL manual.
To install the latest version on CRAN, open R and type > install.packages("muRL") > library(muRL)
To install the latest version (0.1-7) directly, download the package
(here) and install using R CMD INSTALL.
Some helpful documents:
Use muRL to produce high-quality letters using R
and LaTeX [PDF version].
Use muRL to scrap APSA eJobs .html files to produce a
spreadsheet of jobs to apply for [PDF version].
The peer-reviewed journal article describing muRL is
Moore, Ryan T. and Andrew Reeves. "The Job Market’s First Steps: Using Research
Tools to Simplify the Process". PS: Political Science &
Politics, 44(2):385-391, April 2011.
If you use this package, please cite the article. To cite the
package, use "Ryan T. Moore and Andrew Reeves (2012). muRL: Mailmerge
using R, LaTeX, and the Web. R package version 0.1-7. http://rtm.wustl.edu/software.muRL.htm".
Missing ZIP codes:
If you find that some recipients do not appear on your recipient map,
their ZIP codes may be missing from the Census file. If you have a
ZIP code you would like included for plotting, please email the
package maintainer with four pieces of information:
the state in which the ZIP code is located,
the ZIP code itself,
the latitude of the ZIP code to six decimal places (such as 38.643248),
and the longitude of the ZIP code to six decimal places (such as
Please also provide the city and any other information required to verify the latitude and longitude for inclusion. Thanks!