Ancillary Function for Preparing Emails and Postings
create.post(instructions = character(), description = "post", subject = "", method = getOption("mailer"), address = "the relevant mailing list", ccaddress = getOption("ccaddress", ""), filename = "R.post", info = character())
Character vector of instructions to put at the top of the template email.
Character string: a description to be incorporated into messages.
Subject of the email. Optional except for the
Submission method, one of
"ess"or (Unix only)
"mailx". See ‘Details’.
Recipient's email address, where applicable: for package bug reports sent by email this defaults to the address of the package maintainer (the first if more than one is listed).
Optional email address for copies with the
ccaddress = ""for no copy.
Filename to use for setting up the email (or storing it when method is
"none"or sending mail fails).
character vector of information to include in the template email below the ‘please do not edit the information below’ line.
What this does depends on the
method. The function first
creates a template email body.
A file editor (see
file.edit) is opened with instructions and the template email. When this returns, the completed email is in file
fileready to be read/pasted into an email program.
This opens the default email program with a template email (including address, Cc: address and subject) for you to edit and send.
This works where default mailers are set up (usual on macOS and Windows, and where
xdg-openis available and configured on other Unix-alikes: if that fails it tries the browser set by
This is the ‘factory-fresh’ default method.
(Unix-alikes only.) A file editor (see
file.edit) is opened with instructions and the template email. When this returns, it is mailed using a Unix command line mail utility such as
mailx, to the address (and optionally, the Cc: address) given.
An (X)emacs mail buffer is opened for the email to be edited and sent: this requires the
gnudoitprogram to be available. Currently
The body of the template email is sent to