Learn R Programming

docorator (version 0.5.2)

hf_height: Calculate desired header or footer height for the document

Description

Calculate desired header or footer height for the document

Usage

hf_height(x, fontsize)

# S3 method for default hf_height(x, fontsize)

# S3 method for fancyhdr hf_height(x, fontsize)

Value

Numeric value

Arguments

x

header or footer

fontsize

Document font size (pt)

Examples

Run this code
header <- fancyhead(
fancyrow(left = "Protocol: 12345", right = doc_pagenum()),
fancyrow(center = "Demographic Summary"))

hf_height(header, 10)

Run the code above in your browser using DataLab