powered by
Calculate desired header or footer height for the document
hf_height(x, fontsize)# S3 method for default hf_height(x, fontsize)# S3 method for fancyhdr hf_height(x, fontsize)
# S3 method for default hf_height(x, fontsize)
# S3 method for fancyhdr hf_height(x, fontsize)
Numeric value
header or footer
Document font size (pt)
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