Learn R Programming

R2wd (version 1.4)

wdUndo: Save the active document.

Description

Save the active document. If a name is given, it is used for the new document, otherwise Word will ask.

Usage

wdUndo(times = 1, wdapp = .R2wd)

Arguments

times
the times argument of the Undo method of the word document
wdapp
The handle to the Word Application (usually not needed).

Value

    Details

    Saves the active document to the name if given or Word will ask for a name.

    Examples

    Run this code
    wdGet()
    wdTitle("By default, writing a title represents 5 calls to word: Style, type text,
    inserting a bookmark, typing a paragraph, and setting the style back to normal")
    # we can undo it by invoking the Undo method on the document five times
    wdUndo(5)
    wdQuit()

    Run the code above in your browser using DataLab