Learn R Programming

R2wd (version 1.4)

wdSection: Start a new section of the document.

Description

Start a section by: Adding a section break, switching to Heading1 style, adding the section title, adding a bookmark, adding a paragraph break, switching to Normal style.

Usage

wdSection(title, label = gsub(" ", "_", paste("sec", title, sep = "_")),
newpage = FALSE, wdapp = .R2wd)

Arguments

title
section title
label
bookmark text (will be generated automatically if missing)
newpage
whether the section should start on a new page (doesn't work)
wdapp
handle to Word Application (usually not needed).

Value

    Examples

    Run this code
    wdGet()
    wdTitle("R2wd a package to ... ")
    wdSection("Introduction",newpage=TRUE)

    Run the code above in your browser using DataLab