body_add_title: Add a title

Description Usage Arguments Value Author(s) Examples

View source: R/officer.r

Description

Add a title

Usage

1
body_add_title(x, value, level = 1, style = "heading", pos = "after")

Arguments

x

the rdocx object (created with the read_docx function of officer package)

value

a character string

level

a integer (1 to 9)

style

a character string

pos

where to add the new element relative to the cursor, one of "after", "before", "on"

Value

a new rdocx object

Author(s)

David Hajage

Examples

1
2
3
4
5
6
## Not run: 
library(biostat2)
library(officer)
doc <- body_add_itemize(doc, "Coucou")

## End(Not run)

eusebe/biostat2 documentation built on Dec. 27, 2019, 4:22 p.m.