Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

R2wd (version 1.4)

wdType: write text to word

Description

Inserts text at the current cursor point in Word (by default without messing with styles).

Usage

wdType(text = "", italic=FALSE, alignment="nothing", paragraph = TRUE, wdapp = .R2wd)

Arguments

text
a test string to be written to Word.
italic
if TRUE then the text will be written in italics
alignment
choice of "nothing", "left", "center", "right".
paragraph
whether a paragraph (line return) should be added at the end.
wdapp
the handle to word (can be ignored).

Value

    Details

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

    Examples

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

    Run the code above in your browser using DataLab