The dataframe used by write.murl should include columns for recipients' titles, first names, last names, addresses, cities, states, and ZIP codes, as well as information specific to the position for which the letter is in application. write.murl is intended to operate on the output of read.murl, and thus requires that the column names for the fields above be ``title'', ``fname'', ``lname'', ``address1'' (and ``address2'', etc.), ``city'', ``state'', ``zip'', ``position'', ``subfield'', ``dept'', and ``institution''. These field names are automatically created by read.murl.
The user may define the main body text of the letter in at least three ways. First, write.murl includes some sample text by default. The user could simply edit this text in the .tex file created by write.murl. Second, the user could write the body text in a separate file (such as a .txt file) and specify that file's name using the letter.file argument. Third, the user could define the entire body text as a string passed to the letter.text argument.
If both letter.file and letter.text are specified, write.murl appends the value of letter.string below the contents of the file specified by letter.file.
The opening line specified by argument opening should be of a grammatical form consistent with ``I write to apply for the position in''. This phrase will then be followed by customized input, using the fields ``position'', ``subfield'', ``dept'', and ``institution'', as in the example in Value below. To omit such a customized opening line, use the default
include.opening = FALSE. The example in Value below, and thus each letter, will include only the content defined in the LaTeX-defined ``body''.
The closing line specified by argument closing should be of a grammatical form consistent with ``I will be an asset to the''. This phrase will then be followed by letter-customized
input, using the fields ``position'', ``subfield'', and ``instShort''. To omit such a customized closing line, use the default include.closing = FALSE. If contact_me
is TRUE (the default), then the phrase ``Please don't hesitate to contact me if more information would be helpful.'' is included.
If the margin_geometry argument is specified, the LaTeX package geometry will
be used, and the four components of margin_geometry provide the margins for
the top, bottom, left, and right of the letters. If it is not specified, the default
margins of documentclass{letter} are used.