wdVerbatim: write verbatim text to word (for example model output).

Description Usage Arguments Details Note Author(s) Examples

Description

write single spaced text in (by default) Courier font to word. This is useful to render R output 'as is'.

Usage

1
wdVerbatim(text = "", paragraph = TRUE, fontsize = 9, fontname = "Courier New", wdapp = .R2wd)

Arguments

text

the text to write

paragraph

whether the chunk should be closed by a paragraph return.

fontsize

size of the font

fontname

name of the font

wdapp

handle to the Word application (usually not used).

Details

Saves the current style. Wwitches to Courier New, single spaced, 9 pt (by default) and renders the text. Switches back to the previous style.

Note

This is almost the similar to wdBody and wdWrite.

Author(s)

Christian Ritter

Examples

1
2
3
4
5
6
## Not run: 
wdGet()
tt<-capture.output(summary(lm(mpg~hp,data=mtcars)))
wdVerbatim(tt)
  
## End(Not run)

R2wd documentation built on May 2, 2019, 8:54 a.m.