DescTools (version 0.99.8.1)

GetNewWrd: Create a new Word Instance

Description

Start a new instance of Word and return its handle. This handle allows controlling word afterwards.

Usage

GetNewWrd(visible = TRUE, template = "Normal", header = FALSE, 
          main = "Descriptive report")

Arguments

visible
logical, should Word made visible? Defaults to TRUE.
template
the name of the template to be used for creating a new document.
header
logical, should a caption and a list of contents be inserted? Default is FALSE.
main
the main title of the report

Value

  • a handle (pointer) to the created Word instance.

Details

Note that the list of contents has to be refreshed by hand after inserting text (if inserted by header = TRUE.

See Also

GetNewXL, GetNewPP

Examples

Run this code
# Windows-specific example

wrd <- GetNewWrd()
Desc(d.pizza[,1:4], wrd=wrd)

wrd <- GetNewWrd(header=TRUE)
Desc(d.pizza[,1:4], wrd=wrd)

Run the code above in your browser using DataLab