Learn R Programming

tm.plugin.mail (version 0.3-1)

MailDocument: E-Mail Documents

Description

Create electronic mail documents.

Usage

MailDocument(x,
             author = character(),
             datetimestamp = as.POSIXlt(Sys.time(), tz = "GMT"),
             description = character(),
             header = character(),
             heading = character(),
             id = character(),
             language = character(),
             origin = character(),
             ...,
             meta = NULL)

Value

An object inheriting from MailDocument,

PlainTextDocument, and TextDocument.

Arguments

x

a character vector giving the text content.

author

a character vector or an object of class person giving the author names.

datetimestamp

an object of class POSIXt or a character string giving the creation date/time information. If a character string, exactly one of the ISO 8601 formats defined by https://www.w3.org/TR/NOTE-datetime should be used. See parse_ISO_8601_datetime in package NLP for processing such date/time information.

description

a character string giving a description.

header

a character vector or list giving the mail header information.

heading

a character string giving the title or a short heading.

id

a character string giving a unique identifier.

language

a character string giving the language (preferably as IETF language tags, see language in package NLP).

origin

a character string giving information on the source and origin.

...

user-defined document metadata tag-value pairs.

meta

a named list or NULL (default) giving all metadata. If set, all other metadata arguments are ignored.

Author

Ingo Feinerer and Kurt Hornik