Learn R Programming

R2wd (version 1.1)

wdGet: Gets a handle to Word.

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

wdGet(visible = TRUE)

Arguments

visible
whether the Word application should be visible.

Value

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

Examples

Run this code
wdGet()
wdTitle("R2wd, a package to write Word documents from R")

Run the code above in your browser using DataLab