wdGet: Gets a handle to Word (using RDCOMClient).

Description Usage Arguments Value Author(s) Examples

Description

wdGet checks first if Word is already running. If this is not the case, it will start Word, add a document and then return the handle to the Word application. If Word is already running and has an active document, it will just return the handle.

Usage

1
wdGet(filename = NULL, path = "", method="rcom",visible = TRUE)

Arguments

filename

the filename of an existing word document (if null, make a new one)

path

the path to an existing word document

method

the COM client. Either "rcom" (default) or "RDCOMClient"

visible

whether the Word application should be visible.

Value

a handle to the COM object refering to the Word application.

Author(s)

Christian Ritter

Examples

1
2
3
4
5
## Not run: 
wdGet()
wdTitle("R2wd, a package to write Word documents from R")

## End(Not run)

R2wd documentation built on May 2, 2019, 8:54 a.m.