SendReport: Send a report

Description Usage Arguments Details Value Examples

View source: R/SendReport.R

Description

SendReport sends a report to an email address containing information about the contents of a directory of the microdata repository.

Usage

1
SendReport(SurveyCode, To, n = 6L, Extended = FALSE, Units = "Mb")

Arguments

SurveyCode

is a character vector of length 1 with the IOE code of the statistical operation.

To

is a character vector with the recipient email addresses.

n

is an integer vector of lenght 1 specifying the number of rows to be included in the output.

Extended

is a logical vector of length 1 specifying whether a more extended output is to be produced.

Units

is a character vector of length 1 specifying the information measure units to be used in the report (default value: 'Mb')

Details

The executable smtpmail.exe must be in the working directory, otherwise an error is triggered. This executable together with a necessary dll library are provided by the methodology unit.

Value

It returns the shell response to the execution of smtpmail.exe.

Examples

1
2
3
4
## Not run: 
SendReport('E30183', 'email@example.com', n = 6L, Extended = FALSE, Units = 'Mb')

## End(Not run)

david-salgado/RepoUtils documentation built on Feb. 22, 2020, 7:58 p.m.