Skip to contents

Evaluates an expression using a specified Word session as the default.

Usage

withWrd(wrd, expr)

Arguments

wrd

A Word COM object.

expr

An expression to evaluate.

Value

The result of the evaluated expression.

Examples

if (FALSE) { # \dontrun{
withWrd(newWrd(), {
  toWrd("Hello")
})
} # }