Learn R Programming

R2wd (version 1.4)

wdNewDoc: Start a new document (when Word is running).

Description

This adds a new document to a running Word Application. If a name is given, the new document is saved under the given name.

Usage

wdNewDoc(name = NULL, wdapp = .R2wd)

Arguments

name
the optional name of the file.
wdapp
the handle to word (usually not needed)

Value

    See Also

    wdGet

    Examples

    Run this code
    wdGet()
    wdNewDoc("This.doc")
    wdQuit()

    Run the code above in your browser using DataLab