Pages and Database objects store their title property as an array of rich text objects. Typically the title only consists of one relevant element, and thus this function will return the first element as a default.

title(x, all.titles = FALSE)

Arguments

x

A page or database.

all.titles

A boolean indicating whether to return only the first title array element, or all elements.

Value

If all.titles is TRUE, a list of all title elements. Otherwise, a single title value.