- This repo provides a custom R Markdown report template: view HTML file (note: this preview can't view all elements of the report).
- To work properly, the report requires the files
style.cssandfooter.html.
Screenshot:
- You can customise the report by changing the
YAMLmetadata in the header of the document. - To customise the style of the HTML including layout, colors, and fonts you can change the CSS in the file
style.css. - The content of the footer can be changed in the file
footer.html(open this file with an editor) - To learn more about the basics of R Markdown, review the documentation or this excellent presentation from RStudio's Alison Hill.
YAML Metadata:
---
title: "Write Reports in R Markdown"
author: "Prof. Dr. Jan Kirenz, `r params$institute`"
params:
institute: "HdM Stuttgart"
country: "Africa"
year: "2007"
output:
html_document:
css: style.css # define your own css
df_print: paged # tables are printed as HTML tables
highlight: default # syntax highlighting style
number_sections: yes # numbering of sections
theme: paper # style option
fig_height: 4 # figure height
fig_width: 8 # figure width
toc: yes # table of content
toc_float:
collapsed: false # show full toc
smooth_scroll: true # toc scrolling behavior
includes:
after_body: footer.html # include footer
---
