Learn R Programming

R2wd (version 1.4)

wdGoToBookmark: Navigate to a bookmark in the active Word document.

Description

Looks up the bookmark in the bookmarks collection and goes to it.

Usage

wdGoToBookmark(bookmark, wdapp = .R2wd)

Arguments

bookmark
the name of the bookmark.
wdapp
the handle to the Word application (usually not needed).

Value

    Examples

    Run this code
    wdGet()
    ## the following command starts a new section and adds a bookmark.
    wdSection("This a new section",label="sec1")
    ## now we add some text
    wdBody("R2wd is a package to write Word documents from R")
    ## we can now go back to the section header
    wdGoToBookmark("sec1")

    Run the code above in your browser using DataLab