Learn R Programming

formatters (version 0.5.10)

default_page_number: Default page number format

Description

If set, the default page number string will appear on the bottom right of every page of a paginated table. The current cpp is used to position the string.

Usage

default_page_number()

set_default_page_number(page_number)

Value

The page number format string (NULL if not set).

Arguments

page_number

(string)
single string value to set the page number format. It should be formatted similarly to the following format: "page {i}/{n}". {i} will be replaced with the current page number, and {n} will be replaced with the total page number. Current cpp is used to position the string in the bottom right corner.

Examples

Run this code
default_page_number()
set_default_page_number("page {i} of {n}")
default_page_number()

Run the code above in your browser using DataLab