Learn R Programming

R2wd (version 1.4)

wdBody: Write in body text.

Description

Inserts text in 'Body' style at the current cursor point in Word.

Usage

wdBody(text = "", paragraph = TRUE, wdapp = .R2wd)

Arguments

text
a test string to be written to Word.
paragraph
whether a paragraph (line return) should be added at the end.
wdapp
the handle to word (can be ignored).

Value

    Details

    Switches to 'Body' style, adds the text, and then gives a carriage return (paragraph break) if requested.

    Examples

    Run this code
    wdBody("R2wd is a package to write MS-Word files from R")

    Run the code above in your browser using DataLab